From 4bacc6c70383c20ade0ee6fd2bcc9d1934e925bb Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sat, 21 Mar 2015 16:11:33 +0100 Subject: Fix -e option --- src/DabMux.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/DabMux.cpp b/src/DabMux.cpp index cbbd612..8ef30ba 100644 --- a/src/DabMux.cpp +++ b/src/DabMux.cpp @@ -380,7 +380,6 @@ int main(int argc, char *argv[]) throw MuxInitException(); } } -#if ENABLE_CMDLINE_OPTIONS else if (argc > 1 && strncmp(argv[1], "-e", 2) == 0) { // use external config file try { @@ -391,9 +390,10 @@ int main(int argc, char *argv[]) string conf_file = argv[2]; - parse_configfile(conf_file, outputs, ensemble, &enableTist, &FICL, - &factumAnalyzer, &limit, &rc, &mgmtserverport, &edi_conf); + read_info(conf_file, pt); + parse_ptree(pt, outputs, ensemble, &enableTist, &FICL, + &factumAnalyzer, &limit, &rc, &mgmtserverport, &edi_conf); } catch (runtime_error &e) { etiLog.log(error, "Configuration file parsing error: %s\n", @@ -401,6 +401,7 @@ int main(int argc, char *argv[]) throw MuxInitException(); } } +#if ENABLE_CMDLINE_OPTIONS else { if (!parse_cmdline(argv, argc, outputs, ensemble, &enableTist, &FICL, &factumAnalyzer, &limit)) { -- cgit v1.2.3