1. In on_pad_added, the code just blinded link demuxer and decoder, what if there are more than one source sink dynamically added to dexmuxer? Does that work correctly?<br><br><pre class="programlisting">static void<br>on_pad_added (GstElement *element,<br>
GstPad *pad,<br> gpointer data)<br>{<br> GstPad *sinkpad;<br> GstElement *decoder = (GstElement *) data;<br><br> /* We can now link this pad with the vorbis-decoder sink pad */<br> g_print ("Dynamic pad created, linking demuxer/decoder\n");<br>
<br> sinkpad = gst_element_get_static_pad (decoder, "sink");<br><br> gst_pad_link (pad, sinkpad);<br><br> gst_object_unref (sinkpad);<br>}<br></pre><br>==================<br><br>2. What dose converter do?<br clear="all">
<br>-- <br>look to the things around you,the immediate world around you, if you are alive,it will mean something to you ——Paul Strand<br>