receiver is now also working

happy dance
parent 492add1a
......@@ -20,7 +20,7 @@ typedef struct {
#define RTCP_PORT_SINK 5007
// get this from gst-rfc3551.h
#define CAPS "application/x-rtp,media=(string)audio,clock-rate=(int)8000,encoding-name=(string)G722"
#define CAPS "application/x-rtp,media=(string)audio,clock-rate=(int)8000,encoding-name=(string)G722,payload=(int)9"
static GMainLoop *loop;
......@@ -30,8 +30,10 @@ pad_added_cb (GstElement *rtpbin, GstPad *srcpad, GstElement *depayloader)
{
GstPad *sinkpad;
g_debug ("%s", GST_PAD_NAME (srcpad));
sinkpad = gst_element_get_static_pad (depayloader, "sink");
if (!gst_pad_link (srcpad, sinkpad))
if (gst_pad_link (srcpad, sinkpad) != GST_PAD_LINK_OK)
g_error ("Failed to link rtpbin to depayloader");
gst_object_unref (sinkpad);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment