[Live-devel] RTSP over HTTP patch

Doug Porter dsp at exacq.com
Tue Jun 1 10:52:49 PDT 2010


It seems that RTSP over HTTP support was broken in the May 29
release.  This patch fixes it:



diff -Naur live.orig/liveMedia/RTSPClient.cpp live/liveMedia/RTSPClient.cpp
--- live.orig/liveMedia/RTSPClient.cpp	2010-05-29 22:20:31.000000000 +0000
+++ live/liveMedia/RTSPClient.cpp	2010-06-01 17:47:48.000000000 +0000
@@ -664,6 +664,11 @@
       sprintf(extraHeaders, extraHeadersFmt,
 	      fSessionCookie);
     } else if (strcmp(request->commandName(), "POST") == 0) {
+      NetAddress destAddress;
+      portNumBits urlPortNum;
+      if (!parseRTSPURL(envir(), fBaseURL, destAddress, urlPortNum, (char const**)&cmdURL)) break;
+      if (cmdURL[0] == '\0') cmdURL = (char*)"/";
+
       protocolStr = "HTTP/1.0";
 
       char const* const extraHeadersFmt =



Thanks,
-- 
dsp


More information about the live-devel mailing list