From f6bba2f729b0f80327e954fee0b2fdd807a3309a Mon Sep 17 00:00:00 2001 From: Thulinma Date: Mon, 12 Feb 2018 10:57:27 +0100 Subject: [PATCH] Changed default response for Input::isAlwaysOn for non-devel builds from true to false. --- src/input/input.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/input/input.cpp b/src/input/input.cpp index 353d1521..d71f50cb 100644 --- a/src/input/input.cpp +++ b/src/input/input.cpp @@ -382,6 +382,7 @@ namespace Mist { ///Checks in the server configuration if this stream is set to always on or not. /// Returns true if it is, or if the stream could not be found in the configuration. + /// If the compiled default debug level is < INFO, instead returns false if the stream is not found. bool Input::isAlwaysOn(){ bool ret = true; std::string strName = streamName.substr(0, (streamName.find_first_of("+ "))); @@ -393,6 +394,10 @@ namespace Mist { if (!streamCfg.getMember("always_on") || !streamCfg.getMember("always_on").asBool()){ ret = false; } + }else{ +#if DEBUG < DLVL_DEVEL + ret = false; +#endif } configLock.post(); return ret;