Dynamically changing the pipeline example code

Tim Müller tim at centricular.com
Tue Feb 9 11:31:04 UTC 2016


On Mon, 2016-02-08 at 12:24 +0000, David Jaggard wrote:

Hi,

> Referring to the example here:
> 
> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/
> section-dynamic-pipelines.html
> 
> in the pad_probe_cb function the blocking probe is removed straight
> away. It seems to me that this would allow data to continue to flow
> into the element following the EOS. That data would then be lost when
> the element is removed.

Removing the probe inside the probe callback will only have an effect
once you return from the callback, so it doesn't matter if that's done
at the beginning of the function or at the end here, if I read things
correctly.

Cheers
 -Tim

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




More information about the gstreamer-devel mailing list