[gst-devel] backward seeking
Andoni Morales
ylatuya at gmail.com
Fri Jul 25 18:11:23 CEST 2008
Hi!
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.
2008/7/25 Ash <hashbrown100 at hotmail.com>:
>
> The seek returns true but just hangs. Are there any other messages I can
> see as to what is really happening in the pipeline?
> > From: thaytan at noraisin.net
> > To: gstreamer-devel at lists.sourceforge.net
> > Date: Fri, 25 Jul 2008 00:08:46 +0100
> > Subject: Re: [gst-devel] backward seeking
>
> >
> > On Thu, 2008-07-24 at 20:52 +0000, Ash wrote:
> > > Anybody know why backward seeking causes playback to hang?
> > >
> > > gst_element_seek(m_bin, -2.0 , GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH |
> > > GST_SEEK_FLAG_KEY_UNIT,
> > > GST_SEEK_TYPE_SET, 0,
> > > GST_SEEK_TYPE_SET, curpos*GST_MSECOND);
> > >
> > > Am I calling this wrong?
> > >
> > >
> > > ______________________________________________________________________
> > Whether reverse playback works depends on the container & codecs - it's
> > not implemented everywhere yet. You should check the return value from
> > gst_element_seek - was the seek refused?
> >
> > J.
> > --
> > Jan Schmidt <thaytan at noraisin.net>
> >
> >
> > -------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> > Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> > Grand prize is a trip for two to an Open Source event anywhere in the
> world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > _______________________________________________
> > gstreamer-devel mailing list
> > gstreamer-devel at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
> ------------------------------
> Time for vacation? WIN what you need. Enter Now!<http://www.gowindowslive.com/summergiveaway/?ocid=tag_jlyhm>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20080725/b9b52f81/attachment.htm>
More information about the gstreamer-devel
mailing list