Skip to content

Instantly share code, notes, and snippets.

@j0sh
Created October 16, 2011 06:30
Show Gist options
  • Save j0sh/1290577 to your computer and use it in GitHub Desktop.
Save j0sh/1290577 to your computer and use it in GitHub Desktop.
RTP: Fix check for UDP transport.
diff --git a/sources/thelib/src/protocols/rtp/basertspappprotocolhandler.cpp b/sources/thelib/src/protocols/rtp/basertspappprotocolhandler.cpp
index 4848c54..c632a0d 100644
--- a/sources/thelib/src/protocols/rtp/basertspappprotocolhandler.cpp
+++ b/sources/thelib/src/protocols/rtp/basertspappprotocolhandler.cpp
@@ -552,7 +552,7 @@ bool BaseRTSPAppProtocolHandler::HandleRTSPRequestSetupInbound(RTSPProtocol *pFr
//2. Check and see if it has RTP/AVP/TCP,RTP/AVP/UDP or RTP/AVP
if ((!transport.HasKey("rtp/avp/tcp"))
- && (!transport.HasKey("rtp/avp/usp"))
+ && (!transport.HasKey("rtp/avp/udp"))
&& (!transport.HasKey("rtp/avp"))) {
FATAL("Invalid transport line: %s", STR(transportLine));
return false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment