diff --git a/src/output/OutputThread.cxx b/src/output/OutputThread.cxx index f5a579fd8..5bad48c94 100644 --- a/src/output/OutputThread.cxx +++ b/src/output/OutputThread.cxx @@ -464,11 +464,9 @@ AudioOutput::PlayChunk(const MusicChunk &chunk) return false; } - assert(nbytes <= data.size); assert(nbytes % out_audio_format.GetFrameSize() == 0); - data.data += nbytes; - data.size -= nbytes; + data.skip_front(nbytes); } return true;