summaryrefslogtreecommitdiff
path: root/apps/codecs/wav64.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/wav64.c')
-rw-r--r--apps/codecs/wav64.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/codecs/wav64.c b/apps/codecs/wav64.c
index c06f78c802..9dbdab8368 100644
--- a/apps/codecs/wav64.c
+++ b/apps/codecs/wav64.c
@@ -161,7 +161,7 @@ static uint8_t *read_buffer(size_t *realsize)
161/* this is the codec entry point */ 161/* this is the codec entry point */
162enum codec_status codec_main(void) 162enum codec_status codec_main(void)
163{ 163{
164 int status = CODEC_OK; 164 int status;
165 uint32_t decodedsamples; 165 uint32_t decodedsamples;
166 size_t n; 166 size_t n;
167 int bufcount; 167 int bufcount;
@@ -176,14 +176,16 @@ enum codec_status codec_main(void)
176 ci->configure(DSP_SET_SAMPLE_DEPTH, PCM_OUTPUT_DEPTH-1); 176 ci->configure(DSP_SET_SAMPLE_DEPTH, PCM_OUTPUT_DEPTH-1);
177 177
178next_track: 178next_track:
179 status = CODEC_OK;
180
179 if (codec_init()) { 181 if (codec_init()) {
180 DEBUGF("codec_init() error\n"); 182 DEBUGF("codec_init() error\n");
181 status = CODEC_ERROR; 183 status = CODEC_ERROR;
182 goto exit; 184 goto exit;
183 } 185 }
184 186
185 while (!*ci->taginfo_ready && !ci->stop_codec) 187 if (codec_wait_taginfo() != 0)
186 ci->sleep(1); 188 goto done;
187 189
188 codec_set_replaygain(ci->id3); 190 codec_set_replaygain(ci->id3);
189 191