From f081696f620b6e2f2c18056412c7bf2c2832d401 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 31 Dec 2015 13:02:55 +0100 Subject: [PATCH] decoder/Thread: convert "int ret" to "bool success" --- src/decoder/DecoderThread.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/decoder/DecoderThread.cxx b/src/decoder/DecoderThread.cxx index 971e4f8a7..6e48ab3d2 100644 --- a/src/decoder/DecoderThread.cxx +++ b/src/decoder/DecoderThread.cxx @@ -385,11 +385,11 @@ decoder_run_song(DecoderControl &dc, decoder_command_finished_locked(dc); - int ret; + bool success; { const ScopeUnlock unlock(dc.mutex); - ret = !path_fs.IsNull() + success = !path_fs.IsNull() ? decoder_run_file(decoder, uri, path_fs) : decoder_run_stream(decoder, uri); @@ -404,7 +404,7 @@ decoder_run_song(DecoderControl &dc, DecoderControl */ dc.state = DecoderState::ERROR; dc.error = std::move(decoder.error); - } else if (ret) + } else if (success) dc.state = DecoderState::STOP; else { dc.state = DecoderState::ERROR;