Flushing the pipeline in GST 0.10

Nicolas Dufresne nicolas.dufresne at collabora.com
Tue May 27 06:37:15 PDT 2014


Le mardi 27 mai 2014 à 05:34 -0700, vks7979 a écrit :

> Hi All,
> I am trying to send the flush event from the bin. But the piece of code
> keeps failing :
> 
> GstEvent* flush_start = gst_event_new_flush_start();
> ret = gst_element_send_event(GST_ELEMENT(pipeline), flush_start);



Quick answer, you can't send a flush event from application side.
Basesrc will make sure of that by dropping it (and warn). Google first
MSE prototype was doing that, so that might explain why it exist when
you google it.


> But the return value is always 0. Why is this so?

The why is that only the element driving the element can do that
correctly (and without race).


> Is there something wrong I am doing? Are there any prerequisites that need
> to be handles before sendng the flush event?


To flush a pipeline from application side you have two options though.
First is to operate a flushing seek, you can pass NONE position iirc.
The other option is to go into READY state (or NULL).

Nicolas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140527/05c98f27/attachment-0001.html>


More information about the gstreamer-devel mailing list