mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-02 00:32:43 +00:00
gst/rtsp/gstrtspsrc.c: Don't try to configure RTCP back to the server when the server did not give us a valid port nu...
Original commit message from CVS: * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_stream_configure_udp_sink): Don't try to configure RTCP back to the server when the server did not give us a valid port number.
This commit is contained in:
parent
3033108c05
commit
0dfa54f450
2 changed files with 16 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2008-08-20 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||||
|
|
||||||
|
* gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_stream_configure_udp_sink):
|
||||||
|
Don't try to configure RTCP back to the server when the server did not
|
||||||
|
give us a valid port number.
|
||||||
|
|
||||||
2008-08-20 Wim Taymans <wim.taymans@collabora.co.uk>
|
2008-08-20 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||||
|
|
||||||
* gst/videobox/gstvideobox.c: (gst_video_box_set_property):
|
* gst/videobox/gstvideobox.c: (gst_video_box_set_property):
|
||||||
|
|
|
@ -2057,6 +2057,11 @@ gst_rtspsrc_stream_configure_udp_sink (GstRTSPSrc * src, GstRTSPStream * stream,
|
||||||
else
|
else
|
||||||
port = transport->server_port.max;
|
port = transport->server_port.max;
|
||||||
|
|
||||||
|
/* it's possible that the server does not want us to send RTCP in which case
|
||||||
|
* the port is -1 */
|
||||||
|
if (port == -1)
|
||||||
|
goto no_port;
|
||||||
|
|
||||||
/* first take the source, then the endpoint to figure out where to send
|
/* first take the source, then the endpoint to figure out where to send
|
||||||
* the RTCP. */
|
* the RTCP. */
|
||||||
destination = transport->source;
|
destination = transport->source;
|
||||||
|
@ -2114,6 +2119,11 @@ no_sink_element:
|
||||||
GST_DEBUG_OBJECT (src, "no UDP sink element found");
|
GST_DEBUG_OBJECT (src, "no UDP sink element found");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
no_port:
|
||||||
|
{
|
||||||
|
GST_DEBUG_OBJECT (src, "no valid port, ignoring RTCP for this stream");
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* sets up all elements needed for streaming over the specified transport.
|
/* sets up all elements needed for streaming over the specified transport.
|
||||||
|
|
Loading…
Reference in a new issue