aboutsummaryrefslogtreecommitdiffstats
path: root/src/dabplussnoop.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2021-10-02 12:05:15 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2021-10-02 12:05:15 +0200
commit44b50125cef0aecfbad01058f771924bf1e16512 (patch)
tree3ba259715ebaa268f5f6d58f4811e23e55e2feb1 /src/dabplussnoop.cpp
parent1a10e4cf82ff9082a84f81f3feadfceb528e08eb (diff)
downloadetisnoop-44b50125cef0aecfbad01058f771924bf1e16512.tar.gz
etisnoop-44b50125cef0aecfbad01058f771924bf1e16512.tar.bz2
etisnoop-44b50125cef0aecfbad01058f771924bf1e16512.zip
Initialise snoop subchannel index
Diffstat (limited to 'src/dabplussnoop.cpp')
-rw-r--r--src/dabplussnoop.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dabplussnoop.cpp b/src/dabplussnoop.cpp
index 3e55072..f0e0d8b 100644
--- a/src/dabplussnoop.cpp
+++ b/src/dabplussnoop.cpp
@@ -330,14 +330,14 @@ StreamSnoop::~StreamSnoop()
void StreamSnoop::push(uint8_t* streamdata, size_t streamsize)
{
- if (subchid == -1) {
+ if (m_subchid == -1) {
throw logic_error("StreamSnoop not properly initialised");
}
// First dump to subchannel file (superframe+parity word)
if (m_dump_to_file and m_raw_data_stream_fd == nullptr) {
stringstream dump_filename;
- dump_filename << "stream-" << subchid << ".dab";
+ dump_filename << "stream-" << m_subchid << ".dab";
m_raw_data_stream_fd = fopen(dump_filename.str().c_str(), "w");