summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-02-29 11:51:28 +0200
committerSebastian Dröge <sebastian@centricular.com>2016-02-29 12:03:43 +0200
commitcbfbc6ed88a5a2a9635e98b525eb07c5ed4bdbb8 (patch)
treea7e055e4ae49d68ae6b41ba0bdab38bf9c2e65c8
parent55060ee6ce657b85f810a45f117d72ebd4a44202 (diff)
sdpdemux: Add pads with the correct names in case an rtpbin is used
They're supposed to be stream_%u and not recv_rtp_src_%u_%u_%u. https://bugzilla.gnome.org/show_bug.cgi?id=762860
-rw-r--r--gst/sdp/gstsdpdemux.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gst/sdp/gstsdpdemux.c b/gst/sdp/gstsdpdemux.c
index f687d6ac5..b0fd0d9ec 100644
--- a/gst/sdp/gstsdpdemux.c
+++ b/gst/sdp/gstsdpdemux.c
@@ -484,7 +484,7 @@ gst_sdp_demux_cleanup (GstSDPDemux * demux)
static void
new_session_pad (GstElement * session, GstPad * pad, GstSDPDemux * demux)
{
- gchar *name;
+ gchar *name, *pad_name;
GstPadTemplate *template;
gint id, ssrc, pt;
GList *lstream;
@@ -509,11 +509,13 @@ new_session_pad (GstElement * session, GstPad * pad, GstSDPDemux * demux)
/* no need for a timeout anymore now */
g_object_set (G_OBJECT (stream->udpsrc[0]), "timeout", (guint64) 0, NULL);
+ pad_name = g_strdup_printf ("stream_%u", stream->id);
/* create a new pad we will use to stream to */
template = gst_static_pad_template_get (&rtptemplate);
- stream->srcpad = gst_ghost_pad_new_from_template (name, pad, template);
+ stream->srcpad = gst_ghost_pad_new_from_template (pad_name, pad, template);
gst_object_unref (template);
g_free (name);
+ g_free (pad_name);
stream->added = TRUE;
gst_pad_set_active (stream->srcpad, TRUE);