mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
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.
This commit is contained in:
parent
cbc80d10dd
commit
9345c2280a
1 changed files with 2 additions and 2 deletions
|
@ -3181,7 +3181,7 @@ create_send_rtp (GstRtpBin * rtpbin, GstPadTemplate * templ, const gchar * name)
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (rtpbin, "linking RTP encoder");
|
GST_DEBUG_OBJECT (rtpbin, "linking RTP encoder");
|
||||||
ename = g_strdup_printf ("rtp_sink_%d", sessid);
|
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);
|
g_free (ename);
|
||||||
ename = g_strdup_printf ("rtp_src_%d", sessid);
|
ename = g_strdup_printf ("rtp_src_%d", sessid);
|
||||||
encsrc = gst_element_get_static_pad (encoder, ename);
|
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");
|
GST_DEBUG_OBJECT (rtpbin, "linking RTCP encoder");
|
||||||
ename = g_strdup_printf ("rtcp_sink_%d", sessid);
|
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);
|
g_free (ename);
|
||||||
ename = g_strdup_printf ("rtcp_src_%d", sessid);
|
ename = g_strdup_printf ("rtcp_src_%d", sessid);
|
||||||
encsrc = gst_element_get_static_pad (encoder, ename);
|
encsrc = gst_element_get_static_pad (encoder, ename);
|
||||||
|
|
Loading…
Reference in a new issue