[rtmpdump] r138 - trunk/rtmpsuck.c

hyc subversion at mplayerhq.hu
Wed Dec 30 00:42:00 CET 2009


Author: hyc
Date: Wed Dec 30 00:41:59 2009
New Revision: 138

Log:
Add -z option to enable debug

Modified:
   trunk/rtmpsuck.c

Modified: trunk/rtmpsuck.c
==============================================================================
--- trunk/rtmpsuck.c	Wed Dec 30 00:37:52 2009	(r137)
+++ trunk/rtmpsuck.c	Wed Dec 30 00:41:59 2009	(r138)
@@ -1001,7 +1001,8 @@ main(int argc, char **argv)
   LogPrintf("RTMP Proxy Server %s\n", RTMPDUMP_PROXY_VERSION);
   LogPrintf("(c) 2009 Andrej Stepanchuk, Howard Chu; license: GPL\n\n");
 
-  debuglevel = LOGALL;
+  if (argc > 1 && !strcmp(argv[1], "-z"))
+    debuglevel = LOGALL;
 
   // init request
   memset(&defaultRTMPRequest, 0, sizeof(RTMP_REQUEST));


More information about the rtmpdump mailing list