summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Leeman <marc.leeman@gmail.com>2012-11-06 13:22:58 +0100
committerTim-Philipp Müller <tim@centricular.net>2012-11-06 20:21:03 +0000
commitbb1214deacc7d95a68ee4f644486d3342e4aedd3 (patch)
tree5be9b36207bf3089e5d17c8703c1d5d57eb2fb6b
parent2c26d3eff25bd1887c1053026df7f36bd3f4e04a (diff)
rtsp: the RTCP port number is inclusive
The configured port number pair has its upper bound set to the maximum allowed RTCP port, inclusive. See https://bugzilla.gnome.org/show_bug.cgi?id=639420
-rw-r--r--gst/rtsp/gstrtspsrc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c
index 6d9d701ae..cef8c5667 100644
--- a/gst/rtsp/gstrtspsrc.c
+++ b/gst/rtsp/gstrtspsrc.c
@@ -1602,7 +1602,7 @@ again:
/* set port */
tmp_rtcp = tmp_rtp + 1;
- if (src->client_port_range.max > 0 && tmp_rtcp >= src->client_port_range.max)
+ if (src->client_port_range.max > 0 && tmp_rtcp > src->client_port_range.max)
goto no_ports;
g_object_set (G_OBJECT (udpsrc1), "port", tmp_rtcp, "reuse", FALSE, NULL);