diff options
Diffstat (limited to 'apps/codecs')
-rw-r--r-- | apps/codecs/flac.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/codecs/flac.c b/apps/codecs/flac.c index 3566725772..06bf2fc3f3 100644 --- a/apps/codecs/flac.c +++ b/apps/codecs/flac.c | |||
@@ -436,15 +436,15 @@ enum codec_status codec_main(void) | |||
436 | goto exit; | 436 | goto exit; |
437 | } | 437 | } |
438 | 438 | ||
439 | while (!*ci->taginfo_ready && !ci->stop_codec) | ||
440 | ci->sleep(1); | ||
441 | |||
439 | if (!flac_init(&fc,ci->id3->first_frame_offset)) { | 442 | if (!flac_init(&fc,ci->id3->first_frame_offset)) { |
440 | LOGF("FLAC: Error initialising codec\n"); | 443 | LOGF("FLAC: Error initialising codec\n"); |
441 | retval = CODEC_ERROR; | 444 | retval = CODEC_ERROR; |
442 | goto done; | 445 | goto done; |
443 | } | 446 | } |
444 | 447 | ||
445 | while (!*ci->taginfo_ready && !ci->stop_codec) | ||
446 | ci->sleep(1); | ||
447 | |||
448 | ci->configure(DSP_SWITCH_FREQUENCY, ci->id3->frequency); | 448 | ci->configure(DSP_SWITCH_FREQUENCY, ci->id3->frequency); |
449 | ci->configure(DSP_SET_STEREO_MODE, fc.channels == 1 ? | 449 | ci->configure(DSP_SET_STEREO_MODE, fc.channels == 1 ? |
450 | STEREO_MONO : STEREO_NONINTERLEAVED); | 450 | STEREO_MONO : STEREO_NONINTERLEAVED); |