diff options
author | Juergen Keil <jkeil@users.sourceforge.net> | 2001-12-09 13:21:19 +0000 |
---|---|---|
committer | Juergen Keil <jkeil@users.sourceforge.net> | 2001-12-09 13:21:19 +0000 |
commit | 1c740302e23ad207657da30045343cb303428084 (patch) | |
tree | 676434e2440b1d5c76e157e53efe5d87668e5623 /src | |
parent | 8a050469ba52e5c72b591f3fd40621099ce3d945 (diff) | |
download | xine-lib-1c740302e23ad207657da30045343cb303428084.tar.gz xine-lib-1c740302e23ad207657da30045343cb303428084.tar.bz2 |
- 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
Diffstat (limited to 'src')
-rw-r--r-- | src/demuxers/demux_cda.c | 6 |
1 files 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; |