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/oggvorbis_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/oggvorbis_plugin.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/inputPlugins/oggvorbis_plugin.c b/src/inputPlugins/oggvorbis_plugin.c index b2aa8bf60..808af92b0 100644 --- a/src/inputPlugins/oggvorbis_plugin.c +++ b/src/inputPlugins/oggvorbis_plugin.c @@ -319,7 +319,8 @@ static int oggvorbis_decode(struct decoder * decoder, InputStream * inStream) } } - if (decoder_get_command(decoder) != DECODE_COMMAND_STOP && chunkpos > 0) { + if (decoder_get_command(decoder) == DECODE_COMMAND_NONE && + chunkpos > 0) { decoder_data(decoder, NULL, inStream->seekable, chunk, chunkpos, ov_time_tell(&vf), bitRate, |