rtsp-media: update for gst_element_make_from_uri() changes
authorTim-Philipp Müller <tim@centricular.net>
Sat, 23 Jun 2012 14:06:11 +0000 (15:06 +0100)
committerTim-Philipp Müller <tim@centricular.net>
Sat, 23 Jun 2012 14:06:11 +0000 (15:06 +0100)
gst/rtsp-server/rtsp-media.c

index c2f37d4..43290cf 100644 (file)
@@ -869,7 +869,7 @@ alloc_udp_ports (GstRTSPMedia * media, GstRTSPMediaStream * stream)
   /* try to allocate 2 UDP ports, the RTP port should be an even
    * number and the RTCP port should be the next (uneven) port */
 again:
-  udpsrc0 = gst_element_make_from_uri (GST_URI_SRC, host, NULL);
+  udpsrc0 = gst_element_make_from_uri (GST_URI_SRC, host, NULL, NULL);
   if (udpsrc0 == NULL)
     goto no_udp_protocol;
   g_object_set (G_OBJECT (udpsrc0), "port", tmp_rtp, NULL);
@@ -905,7 +905,7 @@ again:
   }
 
   /* allocate port+1 for RTCP now */
-  udpsrc1 = gst_element_make_from_uri (GST_URI_SRC, host, NULL);
+  udpsrc1 = gst_element_make_from_uri (GST_URI_SRC, host, NULL, NULL);
   if (udpsrc1 == NULL)
     goto no_udp_rtcp_protocol;