summaryrefslogtreecommitdiffstats
path: root/apps/codecs/alac.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/alac.c')
-rw-r--r--apps/codecs/alac.c5
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)
goto exit;
}
- while (!rb->taginfo_ready)
- rb->yield();
+ while (!*ci->taginfo_ready && !ci->stop_codec)
+ ci->sleep(1);
ci->configure(DSP_SET_FREQUENCY, (long *)(rb->id3->frequency));
+ codec_set_replaygain(rb->id3);
stream_create(&input_stream,ci);