From: hyc Date: Tue, 29 Dec 2009 23:41:59 +0000 (+0000) Subject: Add -z option to enable debug X-Git-Tag: v2.4~361 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=be12945fb3c126bf4b1afaa0ea12ae5eb51e8a21;p=rtmpdump Add -z option to enable debug git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@138 400ebc74-4327-4243-bc38-086b20814532 --- diff --git a/rtmpsuck.c b/rtmpsuck.c index 52cd59f..ce42c3d 100644 --- a/rtmpsuck.c +++ b/rtmpsuck.c @@ -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));