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
This commit is contained in:
Marc Leeman 2012-11-06 13:22:58 +01:00 committed by Wim Taymans
parent 230cf41cc9
commit 7cbca3dcd1

View file

@ -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);