I am having a client and a server, the server sends rtp data well but the client is failing somehow.<br>I am having a problem linking the rtpbin recv_rtp_src_%d_%d_%d Element to a payload element.<br><br>here&#39;s my Linker <br>
<br>/*       rtpbin = gst_element_factory_make (&quot;gstrtpbin&quot;, &quot;rtpbin&quot;);<br>         videosink = gst_element_factory_make (&quot;rtptheoradepay&quot;, &quot;videosink&quot;);<br>*/<br><br>static void pad_added_cb (GstElement * rtpbin, GstPad * new_pad, GstElement * depay)<br>
{<br>      GstPad *sinkpad;<br>      GstPadLinkReturn lres;<br><br>      g_print (&quot;new payload on pad: %s\n&quot;, GST_PAD_NAME (new_pad));<br><br>      sinkpad = gst_element_get_static_pad (depay, &quot;sink&quot;);<br>
      g_assert (sinkpad);<br><br>      lres = gst_pad_link (new_pad, sinkpad);<br>      g_assert (lres == GST_PAD_LINK_OK);<br>      gst_object_unref (sinkpad);<br>}<br><br>this is how I call the method.<br><br>g_signal_connect (rtpbin, &quot;pad-added&quot;, G_CALLBACK (pad_added_cb), videodepay);<br>

<br>this is the error I get <br><br>bash $ ./client_video_stream <br>starting receiver pipeline<br>new payload on pad: recv_rtp_src_0_3343416118_96<br>**<br>ERROR:client_video_stream.c:33:pad_added_cb: assertion failed: (lres == GST_PAD_LINK_OK)<br>
<br>*********<br><br>Please help<br>