mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
rtsp-media: update for gst_element_make_from_uri() changes
This commit is contained in:
parent
df54c553ae
commit
217a46e4c1
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue