Removing elements

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


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

https://github.com/GStreamer/gst-python/blob/master/examples/dynamic_src.py

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 lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> 


-- 
SENT FROM MY DEC VT50 TERMINAL

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 203 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20210528/eca5111d/attachment.sig>


More information about the gstreamer-devel mailing list