From 714e84d891137c5b9c9767375d3eb5a20fe0e3b0 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 2 Jul 2013 15:54:43 +0200 Subject: [PATCH] sdp: get control string from stream Use the control string as configured in the stream. --- gst/rtsp-server/rtsp-sdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/rtsp-server/rtsp-sdp.c b/gst/rtsp-server/rtsp-sdp.c index 399367a245..5dfec79d97 100644 --- a/gst/rtsp-server/rtsp-sdp.c +++ b/gst/rtsp-server/rtsp-sdp.c @@ -154,7 +154,7 @@ gst_rtsp_sdp_from_media (GstSDPMessage * sdp, GstSDPInfo * info, } /* the config uri */ - tmp = g_strdup_printf ("stream=%d", i); + tmp = gst_rtsp_stream_get_control (stream); gst_sdp_media_add_attribute (smedia, "control", tmp); g_free (tmp);