[vlc-devel] commit: SAP: fix RTP port parity ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Jan 11 19:38:20 CET 2009
vlc | branch: 0.9-bugfix | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Jan 11 20:35:17 2009 +0200| [1ba2ee6e566a2ae92492f1d074ed6d403c8d9d8e] | committer: Rémi Denis-Courmont
SAP: fix RTP port parity
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1ba2ee6e566a2ae92492f1d074ed6d403c8d9d8e
---
modules/services_discovery/sap.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/modules/services_discovery/sap.c b/modules/services_discovery/sap.c
index f7228b4..26a9dc1 100644
--- a/modules/services_discovery/sap.c
+++ b/modules/services_discovery/sap.c
@@ -1004,6 +1004,12 @@ static int ParseConnection( vlc_object_t *p_obj, sdp_t *p_sdp )
return VLC_EGENERIC;
}
+ if (strcmp (vlc_proto, "udp")
+ && (port & 1) /* odd media port? */
+ && !FindAttribute (p_sdp, 0, "rtcp-mux")
+ && !FindAttribute (p_sdp, 0, "rtcp"))
+ port++; /* RTP on next even port */
+
if (flags & 1)
{
/* Connection-oriented media */
More information about the vlc-devel
mailing list