aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/VLCInput.cpp2
-rw-r--r--src/VLCInput.h2
2 files changed, 3 insertions, 1 deletions
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);