aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputPlugins/wavpack_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:27:15 +0200
committerMax Kellermann <max@duempel.org>2008-08-26 08:27:15 +0200
commite530181e233f315f90c31e0d4aae63449222f46c (patch)
tree43b10597e3472d2edfa05250fc11f746a6d27f4a /src/inputPlugins/wavpack_plugin.c
parent4515ac5ecbab8cdb0a92e3873a54238f901757c2 (diff)
downloadmpd-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 'src/inputPlugins/wavpack_plugin.c')
-rw-r--r--src/inputPlugins/wavpack_plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inputPlugins/wavpack_plugin.c b/src/inputPlugins/wavpack_plugin.c
index e4ac8b1e7..7a37e69b2 100644
--- a/src/inputPlugins/wavpack_plugin.c
+++ b/src/inputPlugins/wavpack_plugin.c
@@ -487,7 +487,7 @@ static int wavpack_open_wvc(struct decoder *decoder,
if (bufferInputStream(is_wvc) >= 0)
return 1;
- if (decoder_get_command(decoder) == DECODE_COMMAND_STOP) {
+ if (decoder_get_command(decoder) != DECODE_COMMAND_NONE) {
closeInputStream(is_wvc);
return 0;
}