From c2abd02b9bbfd43e1ff169dd280ec6d197c94b5f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 20 Dec 2016 17:38:08 +0100 Subject: [PATCH] output/Thread: use ConstBuffer::skip_front() --- src/output/OutputThread.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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;