From 4d45987e374737af5e2aa7215c608d4501c07672 Mon Sep 17 00:00:00 2001 From: Ryan Jackson Date: Thu, 14 Jul 2005 03:58:22 +0000 Subject: Removed unnecessary code that also caused playback glitches when changing tracks git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7136 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/vorbis.c | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/apps/codecs/vorbis.c b/apps/codecs/vorbis.c index 20fb79aa1d..720745fb0e 100644 --- a/apps/codecs/vorbis.c +++ b/apps/codecs/vorbis.c @@ -232,8 +232,8 @@ enum codec_status codec_start(struct codec_api* api) } eof=0; - rb->yield(); while (!eof) { + rb->yield(); if (rb->stop_codec || rb->reload_codec) break ; @@ -264,18 +264,11 @@ enum codec_status codec_start(struct codec_api* api) } else { while (!rb->pcmbuf_insert(pcmbuf, n)) { rb->sleep(1); - if ( rb->seek_time ) { - /* Hmmm, a seek was requested. Throw out the - * buffer and go back to the top of the loop. - */ - break; - } } - if ( !rb->seek_time ) { - rb->set_offset(ov_raw_tell(&vf)); - rb->set_elapsed(ov_time_tell(&vf)); - rb->yield(); - } + + rb->set_offset(ov_raw_tell(&vf)); + rb->set_elapsed(ov_time_tell(&vf)); + } } -- cgit v1.2.3