summaryrefslogtreecommitdiffstats
path: root/apps/codecs/vorbis.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/vorbis.c')
-rw-r--r--apps/codecs/vorbis.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/codecs/vorbis.c b/apps/codecs/vorbis.c
index a9a274500c..1900364a89 100644
--- a/apps/codecs/vorbis.c
+++ b/apps/codecs/vorbis.c
@@ -129,7 +129,6 @@ enum codec_status codec_start(struct codec_api *api)
rb->memset(iedata, 0, iend - iedata);
#endif
- rb->configure(CODEC_DSP_ENABLE, (bool *)true);
rb->configure(DSP_DITHER, (bool *)false);
rb->configure(DSP_SET_SAMPLE_DEPTH, (long *)24);
rb->configure(DSP_SET_CLIP_MAX, (long *)((1 << 24) - 1));
@@ -194,7 +193,7 @@ next_track:
} else {
//rb->logf("ov_open: %d", error);
error = CODEC_ERROR;
- goto exit;
+ goto done;
}
if (rb->id3->offset) {
@@ -224,7 +223,7 @@ next_track:
if (current_section != previous_section) {
if (!vorbis_set_codec_parameters(&vf)) {
error = CODEC_ERROR;
- goto exit;
+ goto done;
} else {
previous_section = current_section;
}
@@ -243,7 +242,9 @@ next_track:
rb->set_elapsed(ov_time_tell(&vf));
}
}
+ error = CODEC_OK;
+done:
if (rb->request_next_track()) {
/* Clean things up for the next track */
vf.dataoffsets = NULL;
@@ -255,7 +256,6 @@ next_track:
goto next_track;
}
- error = CODEC_OK;
exit:
return error;
}