+ if (filter)
+ {
+ /* id3demux also has dynamic pads, which need to be connected to the decoder (this is done in the 'gstCBfilterPadAdded' CB) */
+ gst_bin_add(GST_BIN(m_gst_pipeline), filter);
+ gst_element_link(source, filter);
+ m_decoder = decoder;
+ g_signal_connect (filter, "pad-added", G_CALLBACK(gstCBfilterPadAdded), this);
+ } else
+ /* in decodebin's case we can just connect the source with the decodebin, and decodebin will take care about id3demux (or whatever is required) */
+ gst_element_link(source, decoder);
+
+ /* create audio bin with the audioconverter, the capsfilter and the audiosink */