Removing elements

Florian Echtler floe at
Fri May 28 09:32:35 UTC 2021

Was just looking at this yesterday, here's a minimal example:

IIRC the method is to install an idle probe on the upstream pad, unlink the pads 
when the idle probe is triggered, and set the state to NULL later (in an idle 
callback or such).

Best, Florian

On 28/05/2021 11:28, Anthony Williams via gstreamer-devel wrote:
> Hi,
> I have a gstreamer pipeline that mixes streams from various sources.
> What's the best way to remove elements when they are no longer required,
> without destroying and rebuilding the whole stream?
> At the moment, I'm removing the elements from the pipeline, setting
> their state to GST_STATE_NULL, and unlinking the final element from the
> mixer. However, this is unreliable, and sometimes leads to a hang.
> Can anyone point to some example code that shows how to do this reliably?
> Thanks,
> Anthony
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at


-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 203 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the gstreamer-devel mailing list