<div dir="ltr">Hi! <br>If you set the start time at 0, a backward seeking will try to seek to negatives values. It will place your stream at 0 mseconds and then it will try to go backward witch is imposible as it's the end of the stream. Try changing your start time to curpos*GST_MSECOND. It will seek to a new position with positive values and your stream will be played backward to the 0 position.<br>
<br><div class="gmail_quote">2008/7/25 Ash <<a href="mailto:hashbrown100@hotmail.com">hashbrown100@hotmail.com</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<br>The seek returns true but just hangs. Are there any other messages I can see as to what is really happening in the pipeline?<br>> From: <a href="mailto:thaytan@noraisin.net" target="_blank">thaytan@noraisin.net</a><br>
> To: <a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br>> Date: Fri, 25 Jul 2008 00:08:46 +0100<br>> Subject: Re: [gst-devel] backward seeking<div>
<div></div><div class="Wj3C7c"><br>> <br>> On Thu, 2008-07-24 at 20:52 +0000, Ash wrote:<br>> > Anybody know why backward seeking causes playback to hang?<br>> > <br>> > gst_element_seek(m_bin, -2.0 , GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH |<br>
> > GST_SEEK_FLAG_KEY_UNIT,<br>> > GST_SEEK_TYPE_SET, 0,<br>> > GST_SEEK_TYPE_SET, curpos*GST_MSECOND);<br>> > <br>> > Am I calling this wrong?<br>> > <br>> > <br>> > ______________________________________________________________________<br>
> Whether reverse playback works depends on the container & codecs - it's<br>> not implemented everywhere yet. You should check the return value from<br>> gst_element_seek - was the seek refused?<br>> <br>
> J.<br>> -- <br>> Jan Schmidt <<a href="mailto:thaytan@noraisin.net" target="_blank">thaytan@noraisin.net</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" target="_blank">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>
<br></div></div><hr>Time for vacation? WIN what you need. <a href="http://www.gowindowslive.com/summergiveaway/?ocid=tag_jlyhm" target="_blank">Enter Now!</a></div>
<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">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>
<br></blockquote></div><br></div>