summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-03-23 13:52:39 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-03-23 13:52:39 +0100
commit202f869e1a2ec0da5940c25e5ff24d5c34002421 (patch)
tree45dce61fb796a28d26243a25d4be1ecec2e08d22 /src
parentcfd3e90270e7a54da32665374c7b8cddce826efa (diff)
downloadODR-AudioEnc-202f869e1a2ec0da5940c25e5ff24d5c34002421.tar.gz
ODR-AudioEnc-202f869e1a2ec0da5940c25e5ff24d5c34002421.tar.bz2
ODR-AudioEnc-202f869e1a2ec0da5940c25e5ff24d5c34002421.zip
Fix compilation error
Diffstat (limited to 'src')
-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);