Dynamic mixing using Adder

Nicolas Dufresne nicolas.dufresne at collabora.com
Fri Oct 24 07:30:31 PDT 2014


Le 2014-10-24 09:57, SimonKay a écrit :
> I don't get the issue and can add and remove new srcbins without effecting
> any live streams! I'm not sure why this would be the case, I'm assuming
> gst_element_link() SHOULD dynamically create the request_pad? It seems to do
> so in the first instance, just not in any further requests..
>
> I don't feel confident enough to suggest this is a bug. Any pointers as to
> why this might be the case?

gst_element_link() is for very straightforward linking. Basically it can 
only be trusted for element linking where there is 1 static src pad, and 
1 static sink pad (when multiple static pads, it blindly pick the 
first). For your case, obviously using request pad directly seems to be 
the most trusted method, but note that gst_element_link_pads() where you 
can pass the pad name (sink_%u) work for request pads too. In all case, 
you should always handle the return value of these method, it will help 
finding and tracking down issues.

cheers,
Nicolas


More information about the gstreamer-devel mailing list