You should change this code<br><br><pre>/* link videopad */<br>        videopad = gst_element_get_static_pad(pW-&gt;video,&quot;sink&quot;);<br>        if (!GST_PAD_IS_LINKED (videopad)) {<br>                gst_pad_link(pad,videopad);<br>                gst_element_link(pW-&gt;videoqueue,pW-&gt;video);<br>
                g_object_unref (videopad);<br>                return;<br>        }<br><br><br></pre>to the code same like how you link the audiopad. Here&#39;s the example:<br><br><pre>if(g_strrstr(tex,&quot;video&quot;))<br>        {<br>                videopad = gst_element_get_static_pad (pW-&gt;video, &quot;sink&quot;);<br>
                if(GST_PAD_IS_LINKED(videopad))<br>                {<br>                        g_object_unref(videopad);<br>.<br>.<br>.<br>.and so on..<br><br>Fariq Izwan<br></pre><br>