<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> </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> </P>
<P>then</P>
<P>gst_element_send_event (pipeline, seek_event); -> ok but both filesrc1 & 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); -> 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); -> sent (returns 1) but nothing happens (seek not handled)</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"> </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"> </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 <wim.taymans@gmail.com><BR><B><SPAN style="FONT-WEIGHT: bold">À :</SPAN></B> Discussion of the development of GStreamer <gstreamer-devel@lists.sourceforge.net><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 :</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>> Hi Wim,<BR>> is there any way of sending the event to only the specific element<BR>> (one of the filesrc elements in my case) I need?<BR>> If I try to send the seek with gst_element_send_event<BR>> (pipeline1.source, seek_event) (where pipeline1.source would of course<BR>> be my video source), then it seems the event is not sent (returns<BR>> false). Sending to pipeline1 itself returns ok, but seems not to
be<BR>> taken into account anyway.<BR>> Regards,<BR>> 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>> <BR>> > However I want to send specific seek events for each pipeline (to<BR>> > access specific parts of the video files I play). If I use<BR>> > gst_element_send_event (mainpipeline, my_seek_event) then I got one<BR>> of<BR>> > the file beeing seek, but it is not sure which line received the<BR>> > event. And if I use gst_element_send_event (pipeline1,<BR>> > my_seek_event_1) and gst_element_send_event (pipeline2,<BR>> > my_seek_event_2) then it seems that none of the events is catched<BR>> nor<BR>> > processed.<BR>> <BR>> Sending the event to a pipeline/bin will send the event to all sinks<BR>> (or<BR>>
bins with sinks in them) so both pipelines should receive the event.<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 & 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&url=/" target=_blank>http://moblin-contest.org/redirect.php?banner_id=100&url=/</A><BR>> _______________________________________________ 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 & 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&url=/" target=_blank>http://moblin-contest.org/redirect.php?banner_id=100&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>