client: use protocols supported by stream
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 16 Aug 2013 14:16:31 +0000 (16:16 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 16 Aug 2013 14:20:00 +0000 (16:20 +0200)
gst/rtsp-server/rtsp-client.c

index f0d629e..08fe9f1 100644 (file)
@@ -1448,8 +1448,7 @@ handle_setup_request (GstRTSPClient * client, GstRTSPContext * ctx)
   gst_rtsp_transport_new (&ct);
 
   /* our supported transports */
-  supported = GST_RTSP_LOWER_TRANS_UDP |
-      GST_RTSP_LOWER_TRANS_UDP_MCAST | GST_RTSP_LOWER_TRANS_TCP;
+  supported = gst_rtsp_stream_get_protocols (stream);
 
   /* parse and find a usable supported transport */
   if (!parse_transport (transport, supported, ct))