From 1c740302e23ad207657da30045343cb303428084 Mon Sep 17 00:00:00 2001 From: Juergen Keil Date: Sun, 9 Dec 2001 13:21:19 +0000 Subject: - Remove duplicated get_current_pos() call - added a small delay into the demuxer loop, this code works with fake audio buffers anyway and there's no need to run it as fast as possible. CVS patchset: 1188 CVS date: 2001/12/09 13:21:19 --- src/demuxers/demux_cda.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/demuxers/demux_cda.c b/src/demuxers/demux_cda.c index df4de96be..9debcc048 100644 --- a/src/demuxers/demux_cda.c +++ b/src/demuxers/demux_cda.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: demux_cda.c,v 1.1 2001/12/06 23:53:20 f1rmb Exp $ + * $Id: demux_cda.c,v 1.2 2001/12/09 13:21:19 jkeil Exp $ */ #ifdef HAVE_CONFIG_H @@ -73,7 +73,7 @@ static int demux_cda_next (demux_cda_t *this) { buf->PTS = 0; buf->SCR = 0; - buf->input_pos = this->input->get_current_pos(this->input); + buf->input_pos = pos; buf->input_time = buf->input_pos / this->blocksize; buf->type = BUF_AUDIO_MPEG; /* Fake */ @@ -96,6 +96,8 @@ static void *demux_cda_loop (void *this_gen) { do { + xine_usec_sleep(100000); + if (!demux_cda_next(this)) this->status = DEMUX_FINISHED; -- cgit v1.2.3