Commit 9345c228 authored by Wim Taymans's avatar Wim Taymans

rtpbin: expect the pads on the encoders

Don't use request pads for the encoder elements, the signal handler
should request the pads and make sure they are available with the right
name.
parent cbc80d10
......@@ -3181,7 +3181,7 @@ create_send_rtp (GstRtpBin * rtpbin, GstPadTemplate * templ, const gchar * name)
GST_DEBUG_OBJECT (rtpbin, "linking RTP encoder");
ename = g_strdup_printf ("rtp_sink_%d", sessid);
encsink = gst_element_get_request_pad (encoder, ename);
encsink = gst_element_get_static_pad (encoder, ename);
g_free (ename);
ename = g_strdup_printf ("rtp_src_%d", sessid);
encsrc = gst_element_get_static_pad (encoder, ename);
......@@ -3319,7 +3319,7 @@ create_rtcp (GstRtpBin * rtpbin, GstPadTemplate * templ, const gchar * name)
GST_DEBUG_OBJECT (rtpbin, "linking RTCP encoder");
ename = g_strdup_printf ("rtcp_sink_%d", sessid);
encsink = gst_element_get_request_pad (encoder, ename);
encsink = gst_element_get_static_pad (encoder, ename);
g_free (ename);
ename = g_strdup_printf ("rtcp_src_%d", sessid);
encsrc = gst_element_get_static_pad (encoder, ename);
......
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