[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  
>> does
>> not. Could someone tell me why?
>>
>> This does not work:
>>
>>   (...)
>>
>>         gst_element_link_many (stream->priv->src,
>>                                stream->priv->decode,
>>                                stream->priv->convert,
>>                                stream->priv->encode,
>>                                stream->priv->sink,
>>                                NULL);
>
> 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
> http://www.jonobacon.org/2006/11/03/gstreamer-dynamic-pads-explained/
> 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.

Mike




More information about the gstreamer-devel mailing list