Commit c2abd02b authored by Max Kellermann's avatar Max Kellermann

output/Thread: use ConstBuffer::skip_front()

parent 12ecfdd4
...@@ -464,11 +464,9 @@ AudioOutput::PlayChunk(const MusicChunk &chunk) ...@@ -464,11 +464,9 @@ AudioOutput::PlayChunk(const MusicChunk &chunk)
return false; return false;
} }
assert(nbytes <= data.size);
assert(nbytes % out_audio_format.GetFrameSize() == 0); assert(nbytes % out_audio_format.GetFrameSize() == 0);
data.data += nbytes; data.skip_front(nbytes);
data.size -= nbytes;
} }
return true; return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment