From ffb8b4fc6881a2aaee77ad5ea8f9fbda6633a489 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 22 Dec 2016 14:46:59 +0100 Subject: [PATCH] output/Internal: add method ClearTailChunk() --- src/output/Internal.hxx | 4 ++++ src/output/MultipleOutputs.cxx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/output/Internal.hxx b/src/output/Internal.hxx index 8c7902fe2..9c399a3a5 100644 --- a/src/output/Internal.hxx +++ b/src/output/Internal.hxx @@ -433,6 +433,10 @@ public: return IsChunkConsumed(chunk); } + void ClearTailChunk(const MusicChunk &chunk) { + pipe.ClearTail(chunk); + } + private: void CommandFinished(); diff --git a/src/output/MultipleOutputs.cxx b/src/output/MultipleOutputs.cxx index 856678778..0e183a091 100644 --- a/src/output/MultipleOutputs.cxx +++ b/src/output/MultipleOutputs.cxx @@ -278,7 +278,7 @@ MultipleOutputs::ClearTailChunk(const MusicChunk *chunk, continue; } - ao->pipe.ClearTail(*chunk); + ao->ClearTailChunk(*chunk); } }