push data pointer for recursive read from front

This commit is contained in:
Stephen Birarda 2015-04-02 11:34:39 -07:00
parent 164c06a190
commit 41290dd3e3

View file

@ -82,7 +82,7 @@ qint64 AudioInjectorLocalBuffer::recursiveReadFromFront(char* data, qint64 maxSi
// check if we need to call ourselves again and pull from the front again
if (bytesRead < maxSize) {
return bytesRead + recursiveReadFromFront(data, maxSize - bytesRead);
return bytesRead + recursiveReadFromFront(data + bytesRead, maxSize - bytesRead);
} else {
_currentOffset = bytesRead;
return bytesRead;