[rtmpdump] r338 - in trunk: rtmpdump.c rtmpgw.c rtmpsrv.c rtmpsuck.c

hyc subversion at mplayerhq.hu
Sat Mar 13 05:17:03 CET 2010


Author: hyc
Date: Sat Mar 13 05:17:02 2010
New Revision: 338

Log:
Use explicit AMF_debuglevel

Modified:
   trunk/rtmpdump.c
   trunk/rtmpgw.c
   trunk/rtmpsrv.c
   trunk/rtmpsuck.c

Modified: trunk/rtmpdump.c
==============================================================================
--- trunk/rtmpdump.c	Sat Mar 13 05:00:58 2010	(r337)
+++ trunk/rtmpdump.c	Sat Mar 13 05:17:02 2010	(r338)
@@ -788,7 +788,7 @@ main(int argc, char **argv)
     {
       if (strcmp(argv[index], "--quiet") == 0
 	  || strcmp(argv[index], "-q") == 0)
-	debuglevel = LOGCRIT;
+	AMF_debuglevel = LOGCRIT;
       index++;
     }
 
@@ -1109,13 +1109,13 @@ main(int argc, char **argv)
 	  bHashes = true;
 	  break;
 	case 'q':
-	  debuglevel = LOGCRIT;
+	  AMF_debuglevel = LOGCRIT;
 	  break;
 	case 'V':
-	  debuglevel = LOGDEBUG;
+	  AMF_debuglevel = LOGDEBUG;
 	  break;
 	case 'z':
-	  debuglevel = LOGALL;
+	  AMF_debuglevel = LOGALL;
 	  break;
 	case 'S':
 	  sockshost = optarg;

Modified: trunk/rtmpgw.c
==============================================================================
--- trunk/rtmpgw.c	Sat Mar 13 05:00:58 2010	(r337)
+++ trunk/rtmpgw.c	Sat Mar 13 05:17:02 2010	(r338)
@@ -945,13 +945,13 @@ ParseOption(char opt, char *arg, RTMP_RE
     case 'S':
 	  req->sockshost = arg;
     case 'q':
-      debuglevel = LOGCRIT;
+      AMF_debuglevel = LOGCRIT;
       break;
     case 'V':
-      debuglevel = LOGDEBUG;
+      AMF_debuglevel = LOGDEBUG;
       break;
     case 'z':
-      debuglevel = LOGALL;
+      AMF_debuglevel = LOGALL;
       break;
     default:
       LogPrintf("unknown option: %c, arg: %s\n", opt, arg);

Modified: trunk/rtmpsrv.c
==============================================================================
--- trunk/rtmpsrv.c	Sat Mar 13 05:00:58 2010	(r337)
+++ trunk/rtmpsrv.c	Sat Mar 13 05:17:02 2010	(r338)
@@ -1020,10 +1020,10 @@ main(int argc, char **argv)
   LogPrintf("RTMP Server %s\n", RTMPDUMP_VERSION);
   LogPrintf("(c) 2010 Andrej Stepanchuk, Howard Chu; license: GPL\n\n");
 
-  debuglevel = LOGINFO;
+  AMF_debuglevel = LOGINFO;
 
   if (argc > 1 && !strcmp(argv[1], "-z"))
-    debuglevel = LOGALL;
+    AMF_debuglevel = LOGALL;
 
   // init request
   memset(&defaultRTMPRequest, 0, sizeof(RTMP_REQUEST));

Modified: trunk/rtmpsuck.c
==============================================================================
--- trunk/rtmpsuck.c	Sat Mar 13 05:00:58 2010	(r337)
+++ trunk/rtmpsuck.c	Sat Mar 13 05:17:02 2010	(r338)
@@ -1119,10 +1119,10 @@ main(int argc, char **argv)
   LogPrintf("RTMP Proxy Server %s\n", RTMPDUMP_VERSION);
   LogPrintf("(c) 2010 Andrej Stepanchuk, Howard Chu; license: GPL\n\n");
 
-  debuglevel = LOGINFO;
+  AMF_debuglevel = LOGINFO;
 
   if (argc > 1 && !strcmp(argv[1], "-z"))
-    debuglevel = LOGALL;
+    AMF_debuglevel = LOGALL;
 
   signal(SIGINT, sigIntHandler);
 #ifndef WIN32


More information about the rtmpdump mailing list