Activating pads when adding dynamically before entering PAUSED state

Tony Houghton h at realh.co.uk
Wed Sep 30 21:15:05 UTC 2020


Related to my most recent post, I've got a simpler question about adding
pads dynamically. Apparently, when adding a pad to an element, you should
call gst_pad_set_active(pad, TRUE); and examples show this being called
before adding the pad. But according to the API
<https://gstreamer.freedesktop.org/documentation/gstreamer/gstpad.html?gi-language=c#gst_pad_set_active>
this
calls its activate virtual function. I would have thought a pad should only
be activated when it's at least entering PAUSED state. And shouldn't you at
least wait until the pipeline's push/pull mode has been negotiated? What if
I want to add a pad before either of those conditions?

-- 
TH
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200930/79202b34/attachment.htm>


More information about the gstreamer-devel mailing list