sdp: get control string from stream
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 2 Jul 2013 13:54:43 +0000 (15:54 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 2 Jul 2013 13:54:43 +0000 (15:54 +0200)
Use the control string as configured in the stream.

gst/rtsp-server/rtsp-sdp.c

index 399367a..5dfec79 100644 (file)
@@ -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);