Hi I am also working on the similar thing but it seems I have a problem that I cannot Identify.<br><br>I am trying to link gstrtpbin to rtptheoradepay on the Client side<br>I am now on the recieving side of the gstrtobin<br>
<br>heres my link:<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>and I call it using:<br>g_signal_connect (rtpbin, &quot;pad-added&quot;, G_CALLBACK (pad_added_cb), videodepay);<br>
<br>--------------------------------------------------------------------------------------------------------------------------------------------------------<br><br>and the error i get:<br>~bash$ ./client_video_stream<br>(client_video_stream:26694): GStreamer-CRITICAL **: gst_pad_link: assertion `GST_IS_PAD (srcpad)&#39; failed<br>
**<br>ERROR:client_video_stream.c:148:main: assertion failed: (lres == GST_PAD_LINK_OK)<br>Aborted<br>~bash $<br><br>------------------------------------------------------------------------------------------------------------------------------------------------------<br>
caps are: g_object_set (G_OBJECT (rtpsrc), &quot;caps&quot;, gst_caps_new_simple(&quot;application/x-rtp&quot;,<br>                           &quot;media&quot;, G_TYPE_STRING, &quot;video&quot;,<br>                           &quot;payload&quot;, G_TYPE_INT, &quot;96&quot;,<br>
                           &quot;clock-rate&quot;, G_TYPE_INT, &quot;90000&quot;,<br>                           &quot;encoding-name&quot;,G_TYPE_STRING,&quot;THEORA&quot;,<br>                            &quot;delivery-method&quot;,G_TYPE_STRING,&quot;inline&quot;,<br>
                            NULL), NULL);<br>--------------------------------------------------------------------------------------------------------------------------------------------------------<br>I will appreciate your help<br>
<br>