diff options
Diffstat (limited to 'apps/codecs/ape.c')
-rw-r--r-- | apps/codecs/ape.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/codecs/ape.c b/apps/codecs/ape.c index 6679a1a307..76c1d1af8d 100644 --- a/apps/codecs/ape.c +++ b/apps/codecs/ape.c | |||
@@ -164,6 +164,9 @@ enum codec_status codec_main(void) | |||
164 | goto exit; | 164 | goto exit; |
165 | } | 165 | } |
166 | 166 | ||
167 | while (!*ci->taginfo_ready && !ci->stop_codec) | ||
168 | ci->sleep(1); | ||
169 | |||
167 | inbuffer = ci->request_buffer(&bytesleft, INPUT_CHUNKSIZE); | 170 | inbuffer = ci->request_buffer(&bytesleft, INPUT_CHUNKSIZE); |
168 | 171 | ||
169 | /* Read the file headers to populate the ape_ctx struct */ | 172 | /* Read the file headers to populate the ape_ctx struct */ |
@@ -198,9 +201,6 @@ enum codec_status codec_main(void) | |||
198 | (ape_ctx.seektablefilepos + | 201 | (ape_ctx.seektablefilepos + |
199 | ape_ctx.numseekpoints * sizeof(uint32_t))); | 202 | ape_ctx.numseekpoints * sizeof(uint32_t))); |
200 | 203 | ||
201 | while (!*ci->taginfo_ready && !ci->stop_codec) | ||
202 | ci->sleep(1); | ||
203 | |||
204 | ci->configure(DSP_SWITCH_FREQUENCY, ape_ctx.samplerate); | 204 | ci->configure(DSP_SWITCH_FREQUENCY, ape_ctx.samplerate); |
205 | ci->configure(DSP_SET_STEREO_MODE, ape_ctx.channels == 1 ? | 205 | ci->configure(DSP_SET_STEREO_MODE, ape_ctx.channels == 1 ? |
206 | STEREO_MONO : STEREO_NONINTERLEAVED); | 206 | STEREO_MONO : STEREO_NONINTERLEAVED); |