From e530181e233f315f90c31e0d4aae63449222f46c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 26 Aug 2008 08:27:15 +0200 Subject: 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. --- src/inputPlugins/wavpack_plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/inputPlugins/wavpack_plugin.c') 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; } -- cgit v1.2.3