<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>Thanks Wim, </DIV>
<DIV>I've tried as follows for testing:</DIV>
<DIV>&nbsp;</DIV>
<DIV>[create and set all the elements and properties...]</DIV>
<DIV>gst_bin_add_many(GST_BIN(pipeline), filesrc1, decodebin1, ffmpegcolorspace1, directdrawsink1, filesrc2, decodebin2, ffmpegcolorspace2, directdrawsink2, NULL);</DIV>
<DIV>[link filesrc1, decodebin1, ffmpegcolorspace1, directdrawsink1 together, and filesrc2, decodebin2, ffmpegcolorspace2, directdrawsink2 together as distinct lines]</DIV>
<DIV>
<P>gst_element_set_state (pipeline, GST_STATE_PLAYING);</P>
<P>&nbsp;</P>
<P>then</P>
<P>gst_element_send_event (pipeline, seek_event); -&gt; ok but both filesrc1 &amp; filesrc2 get the seek event (not what I want)</P></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">gst_element_send_event (filesrc1, seek_event); -&gt; not sent (returns 0)</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">gst_element_send_event (decodebin1, seek_event); -&gt; sent (returns 1) but nothing happens (seek not handled)</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">I don't know why this won't work, but if I understand what you wrote in the first reply, there's no way to set the seek only on one of the lines.</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">Regards,</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">Al</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV></DIV>
<DIV style="FONT-SIZE: 13px; FONT-FAMILY: arial, helvetica, sans-serif"><FONT face=Tahoma size=2>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">De :</SPAN></B> Wim Taymans &lt;wim.taymans@gmail.com&gt;<BR><B><SPAN style="FONT-WEIGHT: bold">À :</SPAN></B> Discussion of the development of GStreamer &lt;gstreamer-devel@lists.sourceforge.net&gt;<BR><B><SPAN style="FONT-WEIGHT: bold">Envoyé le :</SPAN></B> Vendredi, 14 Novembre 2008, 15h23mn 32s<BR><B><SPAN style="FONT-WEIGHT: bold">Objet&nbsp;:</SPAN></B> Re: [gst-devel] Re : Sending seek events to correct pipelines<BR></FONT><BR>On Fri, 2008-11-14 at 14:13 +0000, Albert Costa wrote:<BR>&gt; Hi Wim,<BR>&gt; is there any way of sending the event to only the specific element<BR>&gt; (one of the filesrc elements in my case) I need?<BR>&gt; If I try to send the seek with gst_element_send_event<BR>&gt; (pipeline1.source, seek_event) (where pipeline1.source would of course<BR>&gt; be my video source), then it seems the event is not sent (returns<BR>&gt; false). Sending to pipeline1 itself returns ok, but seems not to
 be<BR>&gt; taken into account anyway.<BR>&gt; Regards,<BR>&gt; Al<BR><BR>You can send the event to any element that is driving the pipeline,<BR>which may or may not be the source. In a typical playback pipeline, the<BR>demuxer is pushing data into the pipeline.<BR><BR>Wim<BR><BR>&gt; <BR>&gt; &gt; However I want to send specific seek events for each pipeline (to<BR>&gt; &gt; access specific parts of the video files I play). If I use<BR>&gt; &gt; gst_element_send_event (mainpipeline, my_seek_event) then I got one<BR>&gt; of<BR>&gt; &gt; the file beeing seek, but it is not sure which line received the<BR>&gt; &gt; event. And if I use gst_element_send_event (pipeline1,<BR>&gt; &gt; my_seek_event_1) and gst_element_send_event (pipeline2,<BR>&gt; &gt; my_seek_event_2) then it seems that none of the events is catched<BR>&gt; nor<BR>&gt; &gt; processed.<BR>&gt; <BR>&gt; Sending the event to a pipeline/bin will send the event to all sinks<BR>&gt; (or<BR>&gt;
 bins with sinks in them) so both pipelines should receive the event.<BR>&gt; <BR>&gt; <BR>&gt; -------------------------------------------------------------------------<BR>&gt; This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<BR>&gt; Build the coolest Linux based applications with Moblin SDK &amp; win great prizes<BR>&gt; Grand prize is a trip for two to an Open Source event anywhere in the world<BR>&gt; <A href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" target=_blank>http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</A><BR>&gt; _______________________________________________ gstreamer-devel mailing list <A href="mailto:gstreamer-devel@lists.sourceforge.net" ymailto="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</A> <A href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel"
 target=_blank>https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</A><BR><BR><BR>-------------------------------------------------------------------------<BR>This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<BR>Build the coolest Linux based applications with Moblin SDK &amp; win great prizes<BR>Grand prize is a trip for two to an Open Source event anywhere in the world<BR><A href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" target=_blank>http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</A><BR>_______________________________________________<BR>gstreamer-devel mailing list<BR><A href="mailto:gstreamer-devel@lists.sourceforge.net" ymailto="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</A><BR><A href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel"
 target=_blank>https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</A><BR></DIV></div><br>



      </body></html>