how to flush the GstBuffers in pipeline without stop it (GST_STATE_NULL)?

Nicolas Dufresne nicolas at ndufresne.ca
Wed May 29 12:53:59 UTC 2019


Le mer. 29 mai 2019 07 h 40, Halley Zhao <aihua.halley.zhao at gmail.com> a
écrit :

> Hi expert:
>
> ##background:
>   I use a simple gst pipeline (appsrc->v4l2h264decode->waylandsink) inside
> a bigger pipeline of my own (not gst framework, handles demux, audio etc).
> ## issue
>   I meet issue for seek.  when I seek backward (sometime before current
> time), the clock is reset to a previous time and new buffer comes with
> smaller pts. but the cached buffer in gst pipeline has a bigger pts than
> new clock time, video rendering will be blocked for long time.
>   is there any decent way to overcome this?
>   I think the possible solution may flush the cached buffer during seek,
> but I don't find a quick way to do so.
>

Flushing seeks should already have this effect. Sounds like some bug
somewhere.

_______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190529/6c21e8ee/attachment.html>


More information about the gstreamer-devel mailing list