From 44b50125cef0aecfbad01058f771924bf1e16512 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sat, 2 Oct 2021 12:05:15 +0200 Subject: Initialise snoop subchannel index --- src/dabplussnoop.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/dabplussnoop.hpp') diff --git a/src/dabplussnoop.hpp b/src/dabplussnoop.hpp index cc91f46..5efb194 100644 --- a/src/dabplussnoop.hpp +++ b/src/dabplussnoop.hpp @@ -125,6 +125,7 @@ class StreamSnoop { public: StreamSnoop(int subchid, bool dump_to_file) : dps(), + m_subchid(subchid), m_raw_data_stream_fd(nullptr), m_dump_to_file(dump_to_file) { dps.subchid = subchid; @@ -145,11 +146,11 @@ class StreamSnoop { audio_statistics_t get_audio_statistics(void) const; - int subchid = -1; int stream_index = -1; private: DabPlusSnoop dps; + int m_subchid = -1; FILE* m_raw_data_stream_fd; bool m_dump_to_file; }; -- cgit v1.2.3