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



      </body></html>