summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Melanson <mike@multimedia.cx>2003-02-18 00:10:10 +0000
committerMike Melanson <mike@multimedia.cx>2003-02-18 00:10:10 +0000
commitb6a1a6d6d1ce7ef5a31dcf1bc37e22f7c9293377 (patch)
treea944aab5d94b11923adb60f39d4693f2f1abb012
parent931a34127ac881cb14b1fbcec48cfdaca95fd9ef (diff)
downloadxine-lib-b6a1a6d6d1ce7ef5a31dcf1bc37e22f7c9293377.tar.gz
xine-lib-b6a1a6d6d1ce7ef5a31dcf1bc37e22f7c9293377.tar.bz2
added time-based seeking
CVS patchset: 4190 CVS date: 2003/02/18 00:10:10
-rw-r--r--src/demuxers/demux_cdda.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/demuxers/demux_cdda.c b/src/demuxers/demux_cdda.c
index 8d8838ed8..2f53d48de 100644
--- a/src/demuxers/demux_cdda.c
+++ b/src/demuxers/demux_cdda.c
@@ -22,7 +22,7 @@
* linear PCM "decoder" (which in turn sends them directly to the audio
* output target; this is a really fancy CD-playing architecture).
*
- * $Id: demux_cdda.c,v 1.3 2003/01/10 21:10:58 miguelfreitas Exp $
+ * $Id: demux_cdda.c,v 1.4 2003/02/18 00:10:10 tmmm Exp $
*
*/
@@ -147,7 +147,10 @@ static int demux_cdda_seek (demux_plugin_t *this_gen,
demux_cdda_t *this = (demux_cdda_t *) this_gen;
- this->input->seek(this->input, start_pos, SEEK_SET);
+ if (start_pos)
+ this->input->seek(this->input, start_pos, SEEK_SET);
+ else
+ this->input->seek(this->input, start_time * CD_BYTES_PER_SECOND, SEEK_SET);
this->seek_flag = 1;
this->status = DEMUX_OK;
xine_demux_flush_engine (this->stream);