From 503647557aa43e8be23133f8619c6c66bfe2f470 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Tue, 27 Aug 2019 08:40:01 +0200 Subject: Make InputBase::setBitrate fail with invalid_argument instead of return value --- src/input/Zmq.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/input/Zmq.h') diff --git a/src/input/Zmq.h b/src/input/Zmq.h index bf2d5ae..ab3e610 100644 --- a/src/input/Zmq.h +++ b/src/input/Zmq.h @@ -45,7 +45,7 @@ #include #include -#include +#include #include "zmq.hpp" #include "input/inputs.h" #include "ManagementServer.h" @@ -156,6 +156,7 @@ class ZmqBase : public InputBase, public RemoteControllable { m_bitrate(0), m_enable_input(true), m_config(config), + m_name(name), m_stats(name), m_prebuf_current(config.prebuffering) { RC_ADD_PARAMETER(enable, @@ -220,6 +221,7 @@ class ZmqBase : public InputBase, public RemoteControllable { char m_curve_encoder_key[CURVE_KEYLEN+1]; std::string m_inputUri; + std::string m_name; InputStat m_stats; -- cgit v1.2.3