diff options
author | Max Kellermann <max@duempel.org> | 2008-08-26 08:27:15 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-08-26 08:27:15 +0200 |
commit | e530181e233f315f90c31e0d4aae63449222f46c (patch) | |
tree | 43b10597e3472d2edfa05250fc11f746a6d27f4a /src/inputPlugins/flac_plugin.c | |
parent | 4515ac5ecbab8cdb0a92e3873a54238f901757c2 (diff) | |
download | mpd-e530181e233f315f90c31e0d4aae63449222f46c.tar.gz mpd-e530181e233f315f90c31e0d4aae63449222f46c.tar.xz mpd-e530181e233f315f90c31e0d4aae63449222f46c.zip |
check decoder_command!=NONE instead of decoder_command==STOP
The code said "decoder_command==STOP" because that was a conversion
from the old "dc->stop" test. As we can now check for all commands in
one test, we can simply rewrite that to decoder_command!=NONE.
Diffstat (limited to '')
-rw-r--r-- | src/inputPlugins/flac_plugin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inputPlugins/flac_plugin.c b/src/inputPlugins/flac_plugin.c index aeea17023..06994d3dd 100644 --- a/src/inputPlugins/flac_plugin.c +++ b/src/inputPlugins/flac_plugin.c @@ -36,7 +36,7 @@ static flac_read_status flacRead(mpd_unused const flac_decoder * flacDec, r = decoder_read(data->decoder, data->inStream, (void *)buf, *bytes); *bytes = r; - if (r == 0 && decoder_get_command(data->decoder) != DECODE_COMMAND_STOP) { + if (r == 0 && decoder_get_command(data->decoder) == DECODE_COMMAND_NONE) { if (inputStreamAtEOF(data->inStream)) return flac_read_status_eof; else |