From 3947b77d7cc5d66600e2d56f0d61ed5f8e70ec9d Mon Sep 17 00:00:00 2001 From: Andrea Bondavalli Date: Mon, 30 Mar 2020 18:55:10 +0200 Subject: [PATCH] Fixed error check of rtp_mcast_base and sap_mcast_addr parameters. The problem was preventing the possibility to change the values from the defaults of these two parameters. --- daemon/config.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/config.cpp b/daemon/config.cpp index 83ecd9f..a954408 100644 --- a/daemon/config.cpp +++ b/daemon/config.cpp @@ -67,11 +67,11 @@ std::shared_ptr Config::parse(const std::string& filename) { config.sample_rate_ = 44100; boost::system::error_code ec; ip::address_v4::from_string(config.rtp_mcast_base_.c_str(), ec); - if (!ec) { + if (ec) { config.rtp_mcast_base_ = "239.1.0.1"; } ip::address_v4::from_string(config.sap_mcast_addr_.c_str(), ec); - if (!ec) { + if (ec) { config.sap_mcast_addr_ = "224.2.127.254"; } if (config.ptp_domain_ > 127)