From 02e22ea1d51500f826b5646ddc4cd53dda3037f1 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Tue, 7 Jun 2005 19:38:13 +0000 Subject: Use proper enumeration for END_OF_STREAM test git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6598 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/codecflac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps') diff --git a/apps/plugins/codecflac.c b/apps/plugins/codecflac.c index f17be3560a..282f692838 100644 --- a/apps/plugins/codecflac.c +++ b/apps/plugins/codecflac.c @@ -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; -- cgit v1.2.3