1
0
Fork 0
forked from len0rd/rockbox

Use proper enumeration for END_OF_STREAM test

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6598 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dave Chapman 2005-06-07 19:38:13 +00:00
parent 6c082a857a
commit 02e22ea1d5

View file

@ -204,7 +204,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parm)
FLAC__seekable_stream_decoder_process_until_end_of_metadata(flacDecoder);
/* The main decoder loop */
while (FLAC__seekable_stream_decoder_get_state(flacDecoder)!=2) {
while (FLAC__seekable_stream_decoder_get_state(flacDecoder)!=FLAC__SEEKABLE_STREAM_DECODER_END_OF_STREAM) {
rb->yield();
if (ci->stop_codec || ci->reload_codec) {
break;