[gst-devel] Problem Linking "gstrtpbing" to pauload Element
Thabelo Mmbengeni
thabelo at gmail.com
Mon Jun 15 08:58:23 CEST 2009
I am having a client and a server, the server sends rtp data well but the
client is failing somehow.
I am having a problem linking the rtpbin recv_rtp_src_%d_%d_%d Element to a
payload element.
here's my Linker
/* rtpbin = gst_element_factory_make ("gstrtpbin", "rtpbin");
videosink = gst_element_factory_make ("rtptheoradepay",
"videosink");
*/
static void pad_added_cb (GstElement * rtpbin, GstPad * new_pad, GstElement
* depay)
{
GstPad *sinkpad;
GstPadLinkReturn lres;
g_print ("new payload on pad: %s\n", GST_PAD_NAME (new_pad));
sinkpad = gst_element_get_static_pad (depay, "sink");
g_assert (sinkpad);
lres = gst_pad_link (new_pad, sinkpad);
g_assert (lres == GST_PAD_LINK_OK);
gst_object_unref (sinkpad);
}
this is how I call the method.
g_signal_connect (rtpbin, "pad-added", G_CALLBACK (pad_added_cb),
videodepay);
this is the error I get
bash $ ./client_video_stream
starting receiver pipeline
new payload on pad: recv_rtp_src_0_3343416118_96
**
ERROR:client_video_stream.c:33:pad_added_cb: assertion failed: (lres ==
GST_PAD_LINK_OK)
*********
Please help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090615/6d64ecc8/attachment.htm>
More information about the gstreamer-devel
mailing list