[gst-devel] Seek operation
Michael Smith
msmith at xiph.org
Wed Dec 24 19:39:00 CET 2008
On Wed, Dec 24, 2008 at 12:19 AM, Sumanth V <sumanth.v at allaboutif.com> wrote:
> Hi All,
> I am writing a application which dose a trickmode operation on the
> stored file. When i do PAUSE and then PLAY it resumes play from where i had
> PAUSED. But when i do seek forward by setting the rate to 2.0 / 4.0 FORWARD
> happens but when i press PLAY the play back dose not resume from where i
> pressed PLAY but instead starts playing from offset where i had selected to
> forward.
> To play while forwarding i send this seek event.
>
> gst_element_seek( pipeline, 1.0,GST_FORMAT_TIME ,GST_SEEK_FLAG_FLUSH ,
> GST_SEEK_TYPE_CUR, 0,
> GST_SEEK_TYPE_NONE, -1 );
That's because you're doing a flushing seek. Remove
GST_SEEK_FLAG_FLUSH to avoid flushing the pipeline.
Mike
More information about the gstreamer-devel
mailing list