From ec456fc57ca30587cef11e03522cda5e3f67baae Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 26 Apr 2019 18:13:02 +0200 Subject: [PATCH] output/MultipleOutputs: make variable more local --- src/output/MultipleOutputs.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/output/MultipleOutputs.cxx b/src/output/MultipleOutputs.cxx index ac13d2d5a..d24aa1eac 100644 --- a/src/output/MultipleOutputs.cxx +++ b/src/output/MultipleOutputs.cxx @@ -299,7 +299,6 @@ unsigned MultipleOutputs::CheckPipe() noexcept { const MusicChunk *chunk; - bool is_tail; bool locked[outputs.size()]; assert(pipe != nullptr); @@ -317,7 +316,7 @@ MultipleOutputs::CheckPipe() noexcept provides a defined value */ elapsed_time = chunk->time; - is_tail = chunk->next == nullptr; + const bool is_tail = chunk->next == nullptr; if (is_tail) /* this is the tail of the pipe - clear the chunk reference in all outputs */