If an AudioStream returned a negative number in his readBuffer() method, then CopyRateConverter::flow could have got stuck in a (quasi) endless loop

svn-id: r25790
This commit is contained in:
Max Horn 2007-02-22 16:36:03 +00:00
parent f16ab37698
commit c3254cde9e

View File

@ -229,7 +229,7 @@ public:
// Mix the data into the output buffer
ptr = _buffer;
while (len--) {
while (len-- > 0) {
st_sample_t tmp0, tmp1;
tmp0 = tmp1 = *ptr++;
if (stereo) {