diff options
Diffstat (limited to 'apps/codecs/wavpack.c')
-rw-r--r-- | apps/codecs/wavpack.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/codecs/wavpack.c b/apps/codecs/wavpack.c index c85c254580..d27a9fb621 100644 --- a/apps/codecs/wavpack.c +++ b/apps/codecs/wavpack.c | |||
@@ -46,15 +46,16 @@ enum codec_status codec_main(void) | |||
46 | /* Generic codec initialisation */ | 46 | /* Generic codec initialisation */ |
47 | ci->configure(DSP_SET_SAMPLE_DEPTH, 28); | 47 | ci->configure(DSP_SET_SAMPLE_DEPTH, 28); |
48 | 48 | ||
49 | next_track: | 49 | next_track: |
50 | retval = CODEC_OK; | ||
50 | 51 | ||
51 | if (codec_init()) { | 52 | if (codec_init()) { |
52 | retval = CODEC_ERROR; | 53 | retval = CODEC_ERROR; |
53 | goto exit; | 54 | goto exit; |
54 | } | 55 | } |
55 | 56 | ||
56 | while (!*ci->taginfo_ready && !ci->stop_codec) | 57 | if (codec_wait_taginfo() != 0) |
57 | ci->sleep(1); | 58 | goto done; |
58 | 59 | ||
59 | /* Create a decoder instance */ | 60 | /* Create a decoder instance */ |
60 | wpc = WavpackOpenFileInput (read_callback, error); | 61 | wpc = WavpackOpenFileInput (read_callback, error); |
@@ -121,7 +122,6 @@ enum codec_status codec_main(void) | |||
121 | ci->set_elapsed (WavpackGetSampleIndex (wpc) / sr_100 * 10); | 122 | ci->set_elapsed (WavpackGetSampleIndex (wpc) / sr_100 * 10); |
122 | ci->yield (); | 123 | ci->yield (); |
123 | } | 124 | } |
124 | retval = CODEC_OK; | ||
125 | 125 | ||
126 | done: | 126 | done: |
127 | if (ci->request_next_track()) | 127 | if (ci->request_next_track()) |