summaryrefslogtreecommitdiff
path: root/apps/codecs/raac.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/raac.c')
-rw-r--r--apps/codecs/raac.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/codecs/raac.c b/apps/codecs/raac.c
index 3fcdca24c9..22d4b4b8b5 100644
--- a/apps/codecs/raac.c
+++ b/apps/codecs/raac.c
@@ -56,7 +56,7 @@ enum codec_status codec_main(void)
56 uint32_t s = 0; /* sample rate */ 56 uint32_t s = 0; /* sample rate */
57 unsigned char c = 0; /* channels */ 57 unsigned char c = 0; /* channels */
58 int playback_on = -1; 58 int playback_on = -1;
59 size_t resume_offset = ci->id3->offset; 59 size_t resume_offset;
60 60
61 /* Generic codec initialisation */ 61 /* Generic codec initialisation */
62 ci->configure(DSP_SET_STEREO_MODE, STEREO_NONINTERLEAVED); 62 ci->configure(DSP_SET_STEREO_MODE, STEREO_NONINTERLEAVED);
@@ -70,8 +70,10 @@ next_track:
70 return CODEC_ERROR; 70 return CODEC_ERROR;
71 } 71 }
72 72
73 while (!*ci->taginfo_ready && !ci->stop_codec) 73 if (codec_wait_taginfo() != 0)
74 ci->sleep(1); 74 goto done;
75
76 resume_offset = ci->id3->offset;
75 77
76 ci->memset(&rmctx,0,sizeof(RMContext)); 78 ci->memset(&rmctx,0,sizeof(RMContext));
77 ci->memset(&pkt,0,sizeof(RMPacket)); 79 ci->memset(&pkt,0,sizeof(RMPacket));
@@ -224,8 +226,6 @@ seek_start:
224 ci->advance_buffer(pkt.length); 226 ci->advance_buffer(pkt.length);
225 } 227 }
226 228
227 err = CODEC_OK;
228
229done: 229done:
230 if (ci->request_next_track()) 230 if (ci->request_next_track())
231 goto next_track; 231 goto next_track;