Seeking in pull based model where the plugin is driving the pipeline

Chuck Crisler ccrisler at mutualink.net
Fri Mar 7 13:50:20 PST 2014


You need to turn on logging to find where it is stopping. In Linux, export
GST_DEBUG=*:3 or something like that, maybe even 4 or 5. The higher numbers
give much more logging.


On Thu, Mar 6, 2014 at 7:36 AM, krupa <krupa.gopal at gmail.com> wrote:

> Hi,
>
> I'm trying to SEEK in my plugin which is pull based(a parser). Right now I
> have implemented just the 'loop' function and 'src_event' function. I have
> an application calling seek as below.
> gst_element_seek (pipeline, 1.0, GST_FORMAT_TIME,GST_SEEK_FLAG_FLUSH,
>                                 GST_SEEK_TYPE_SET, time_nanoseconds,
>                                 GST_SEEK_TYPE_NONE,GST_CLOCK_TIME_NONE)
>
> *time_nanoseconds will be current playing time + 1ns
>
> In the seek switch of the src_event I have implemented the seek as follows.
> 1) gst_pad_push_event (myplugin->sinkpad, gst_event_new_flush_start ());
> 2) gst_pad_push_event (myplugin->srcpad, gst_event_new_flush_start ());
> 3) GST_PAD_STREAM_LOCK (myplugin->sinkpad);
> 4) Call library function to do the seek.
> 5) gst_pad_push_event (myplugin->sinkpad, gst_event_new_flush_stop ());
> 6) gst_pad_push_event (myplugin->srcpad, gst_event_new_flush_stop ());
> 7) GST_PAD_STREAM_UNLOCK (myplugin->sinkpad);
>
> After the seek event comes, my pipeline freezes. From what I understand
> GST_PAD_STREAM_LOCK (myplugin->sinkpad) is not able to get a lock.
> Statements after this statement aren't getting executed. Even if I remove
> it, the pipeline freezes. I wanted to know what GST_PAD_STREAM_LOCK does
> and
> also how to implement seeking in a plugin driving the pipeline and what
> happens when seek is called.
>
> Thanks,
> Krupa
>
>
>
>
>
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/Seeking-in-pull-based-model-where-the-plugin-is-driving-the-pipeline-tp4665788.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140307/880fb2d3/attachment.html>


More information about the gstreamer-devel mailing list