[gst-devel] Question about and appsink pipeline
W. Michael Petullo
mike at flyn.org
Sun Feb 1 22:22:48 CET 2009
>> I have two ways to initialize my pipeline. One works and the other
>> not. Could someone tell me why?
>> This does not work:
>> gst_element_link_many (stream->priv->src,
> This will fail, because decodebin does not have any source pads yet at
> this point, so you can't link decodebin to audioconvert yet. Decodebin
> has 'dynamic pads' which are created only once data flows through the
> pipline, so you need to defer linking decodebin to audioconvert to the
> new-decoded-pad callback. Have a look at the application developer's
> manual and/or
> for more info.
That makes perfect sense, thank you. I linked the dynamic pad using
the "new-decoded-pad" callback and the application works now.
More information about the gstreamer-devel