Flushing the pipeline in GST 0.10

Tim Müller tim at centricular.com
Tue May 27 14:42:18 PDT 2014


On Tue, 2014-05-27 at 09:37 -0400, Nicolas Dufresne wrote:

> 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.
>  (...)
> 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).

Sending flush start/stop should work as well really, depending on the
exact pipeline, and one might need to make sure the source thread is
running again. It didn't work in 0.10 IIRC, but has since been fixed up
here and there in 1.x.

 Cheers
  -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com



More information about the gstreamer-devel mailing list