From 202f869e1a2ec0da5940c25e5ff24d5c34002421 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 23 Mar 2015 13:52:39 +0100 Subject: Fix compilation error --- src/VLCInput.cpp | 2 +- src/VLCInput.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/VLCInput.cpp b/src/VLCInput.cpp index 1c84a50..54f71d2 100644 --- a/src/VLCInput.cpp +++ b/src/VLCInput.cpp @@ -56,7 +56,7 @@ void handleStream( { VLCInput* in = (VLCInput*)p_audio_data; - assert(channels == m_channels); + assert(channels == in->getChannels()); assert(rate == in->getRate()); assert(bits_per_sample == 8*BYTES_PER_SAMPLE); diff --git a/src/VLCInput.h b/src/VLCInput.h index f9cf783..e4a0557 100644 --- a/src/VLCInput.h +++ b/src/VLCInput.h @@ -83,6 +83,8 @@ class VLCInput int getRate() { return m_rate; } + int getChannels() { return m_channels; } + protected: void cleanup(void); -- cgit v1.2.3