[Live-devel] Fix for DEBUG compilation of 2007-04-24

Igor Bukanov igor at mir2.org
Tue Apr 24 01:36:03 PDT 2007


Hi!

The latest release does not compile with DEBUG defined:

RTSPOverHTTPServer.cpp:224:21: missing terminating " character

The attached (also inlined bellow) fixes this.

Regards, Igor

--- .pc/2007_04_24_debug_fix.patch/liveMedia/RTSPOverHTTPServer.cpp	2007-04-24
02:34:48.000000000 +0200
+++ liveMedia/RTSPOverHTTPServer.cpp	2007-04-24 10:24:31.017858362 +0200
@@ -216,18 +216,19 @@ void RTSPOverHTTPServer::HTTPClientConne
 			  acceptStr, sizeof acceptStr,
 			  contentTypeStr, sizeof contentTypeStr) {
 #ifdef DEBUG
     fprintf(stderr, "parseRTSPRequestString() failed!\n");
 #endif
     handleCmd_bad(cseq);
   } else {
 #ifdef DEBUG
-    fprintf(stderr, "parseRTSPRequestString() returned cmdName
\"%s\", urlPreSuffix \"%s
-\", urlSuffix \"%s\"\n", cmdName, urlPreSuffix, urlSuffix);
+    fprintf(stderr, "parseRTSPRequestString() returned "
+            "cmdName \"%s\", urlPreSuffix \"%s\", urlSuffix \"%s\"\n",
+            cmdName, urlPreSuffix, urlSuffix);
 #endif
     if (strcmp(cmdName, "OPTIONS") == 0) {
       handleCmd_OPTIONS(cseq);
     } else if (strcmp(cmdName, "DESCRIBE") == 0) {
       handleCmd_DESCRIBE(cseq, urlSuffix, (char const*)fRequestBuffer);
     } else if (strcmp(cmdName, "SETUP") == 0) {
       handleCmd_SETUP(cseq, urlPreSuffix, urlSuffix, (char
const*)fRequestBuffer);
     } else if (strcmp(cmdName, "TEARDOWN") == 0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2007_04_24_debug_fix.patch
Type: application/octet-stream
Size: 1175 bytes
Desc: not available
Url : http://lists.live555.com/pipermail/live-devel/attachments/20070424/f26dfe20/attachment-0001.obj 


More information about the live-devel mailing list