output/Thread: use ConstBuffer::skip_front()

This commit is contained in:
Max Kellermann 2016-12-20 17:38:08 +01:00
parent 12ecfdd423
commit c2abd02b9b
1 changed files with 1 additions and 3 deletions

View File

@ -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;