summaryrefslogtreecommitdiffstats
path: root/src/multimedia/audio/qaudioinput_mac_p.cpp
diff options
context:
space:
mode:
authorJustin McPherson <justin.mcpherson@nokia.com>2010-03-02 00:11:54 (GMT)
committerJustin McPherson <justin.mcpherson@nokia.com>2010-03-02 01:30:19 (GMT)
commit48a518bd4a761e2027729096f9a1bb552cb83f9e (patch)
tree619d67aa66c906011c4b5c9c7a9de4dae8855f40 /src/multimedia/audio/qaudioinput_mac_p.cpp
parent0fede209124a20ea8a8c75c6b83e5377a56dda4a (diff)
downloadQt-48a518bd4a761e2027729096f9a1bb552cb83f9e.zip
Qt-48a518bd4a761e2027729096f9a1bb552cb83f9e.tar.gz
Qt-48a518bd4a761e2027729096f9a1bb552cb83f9e.tar.bz2
Fix Audio input on OSX 10.6.
Task-number: QTBUG-5741 Reviewed-by: Kurt Korbatits
Diffstat (limited to 'src/multimedia/audio/qaudioinput_mac_p.cpp')
-rw-r--r--src/multimedia/audio/qaudioinput_mac_p.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/multimedia/audio/qaudioinput_mac_p.cpp b/src/multimedia/audio/qaudioinput_mac_p.cpp
index 7251513..c52c6c4 100644
--- a/src/multimedia/audio/qaudioinput_mac_p.cpp
+++ b/src/multimedia/audio/qaudioinput_mac_p.cpp
@@ -169,8 +169,10 @@ public:
void reset()
{
- for (UInt32 i = 0; i < bfs->mNumberBuffers; ++i)
+ for (UInt32 i = 0; i < bfs->mNumberBuffers; ++i) {
bfs->mBuffers[i].mDataByteSize = dataSize;
+ bfs->mBuffers[i].mData = 0;
+ }
}
private: