From 672ff66361de5b1afbfa7ab32d7c0f47eb377e8f Mon Sep 17 00:00:00 2001 From: seife Date: Sun, 27 Feb 2011 12:21:44 +0000 Subject: [PATCH] neutrino: let sectionsd debug actually work git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1226 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- src/neutrino.cpp | 5 +++-- src/sectionsd/debug.cpp | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/neutrino.cpp b/src/neutrino.cpp index 429f94077..b7d1d6287 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -1622,7 +1622,7 @@ printf("CNeutrinoApp::SetChannelMode %d\n", newmode); * CNeutrinoApp - run, the main runloop * **************************************************************************************/ extern int cnxt_debug; -extern int sections_debug; +extern bool sections_debug; extern int zapit_debug; void CNeutrinoApp::CmdParser(int argc, char **argv) @@ -1632,6 +1632,7 @@ void CNeutrinoApp::CmdParser(int argc, char **argv) global_argv[i] = argv[i]; global_argv[argc] = NULL; + sections_debug = false; softupdate = false; fromflash = false; @@ -1657,7 +1658,7 @@ void CNeutrinoApp::CmdParser(int argc, char **argv) cnxt_debug = 1; } else if ((!strcmp(argv[x], "-sd"))) { - sections_debug = 1; + sections_debug = true; } else if ((!strcmp(argv[x], "-zd"))) { zapit_debug = 1; diff --git a/src/sectionsd/debug.cpp b/src/sectionsd/debug.cpp index b6f5a4c94..4269a3100 100644 --- a/src/sectionsd/debug.cpp +++ b/src/sectionsd/debug.cpp @@ -24,7 +24,7 @@ #include #include -bool sections_debug = false; +bool sections_debug; void printdate_ms(FILE *f) { timeval now;