[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [phonon-gstreamer] gstreamer: ensure that ADO samples have the same size on all channels
From: Harald Sitter <sitter () kde ! org>
Date: 2012-06-01 0:48:50
Message-ID: 20120601004850.79F77A60A9 () git ! kde ! org
[Download RAW message or body]
Git commit c794f0ec3f8a6f18b878b1a0c59f54df9805f292 by Harald Sitter.
Committed on 01/06/2012 at 02:48.
Pushed by sitter into branch 'master'.
ensure that ADO samples have the same size on all channels
M +1 -0 gstreamer/audiodataoutput.cpp
http://commits.kde.org/phonon-gstreamer/c794f0ec3f8a6f18b878b1a0c59f54df9805f292
diff --git a/gstreamer/audiodataoutput.cpp b/gstreamer/audiodataoutput.cpp
index eb9827c..8602f28 100644
--- a/gstreamer/audiodataoutput.cpp
+++ b/gstreamer/audiodataoutput.cpp
@@ -105,6 +105,7 @@ inline void AudioDataOutput::convertAndEmit()
for (int i = 0 ; i < m_channels ; ++i) {
map.insert(static_cast<Phonon::AudioDataOutput::Channel>(i), m_channelBuffers[i]);
+ Q_ASSERT(i == 0 || m_channelBuffers[i - 1].size() == m_channelBuffers[i].size());
}
emit dataReady(map);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic