Commit f081696f authored by Max Kellermann's avatar Max Kellermann

decoder/Thread: convert "int ret" to "bool success"

parent 09157c31
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment