diff options
Diffstat (limited to 'apps/codecs/alac.c')
-rw-r--r-- | apps/codecs/alac.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/codecs/alac.c b/apps/codecs/alac.c index 06c81544cd..d65cdb7129 100644 --- a/apps/codecs/alac.c +++ b/apps/codecs/alac.c | |||
@@ -75,10 +75,11 @@ enum codec_status codec_start(struct codec_api* api) | |||
75 | goto exit; | 75 | goto exit; |
76 | } | 76 | } |
77 | 77 | ||
78 | while (!rb->taginfo_ready) | 78 | while (!*ci->taginfo_ready && !ci->stop_codec) |
79 | rb->yield(); | 79 | ci->sleep(1); |
80 | 80 | ||
81 | ci->configure(DSP_SET_FREQUENCY, (long *)(rb->id3->frequency)); | 81 | ci->configure(DSP_SET_FREQUENCY, (long *)(rb->id3->frequency)); |
82 | codec_set_replaygain(rb->id3); | ||
82 | 83 | ||
83 | stream_create(&input_stream,ci); | 84 | stream_create(&input_stream,ci); |
84 | 85 | ||