diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-01-10 21:10:50 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-01-10 21:10:50 +0000 |
commit | 77ecf6954f81c3e1b9589d2d14b79f839022e690 (patch) | |
tree | f8f08e5eeb5d138ac4f4729b0d33f8b3a86792d5 /src/demuxers/demux_cdda.c | |
parent | ba1dc3c25af7a2c0ab705ff7dfb4286f21e4b931 (diff) | |
download | xine-lib-77ecf6954f81c3e1b9589d2d14b79f839022e690.tar.gz xine-lib-77ecf6954f81c3e1b9589d2d14b79f839022e690.tar.bz2 |
have length in miliseconds too
fix some intermediate calculation
CVS patchset: 3856
CVS date: 2003/01/10 21:10:50
Diffstat (limited to 'src/demuxers/demux_cdda.c')
-rw-r--r-- | src/demuxers/demux_cdda.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/demuxers/demux_cdda.c b/src/demuxers/demux_cdda.c index 0c276ebee..8d8838ed8 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.2 2003/01/10 11:57:16 miguelfreitas Exp $ + * $Id: demux_cdda.c,v 1.3 2003/01/10 21:10:58 miguelfreitas Exp $ * */ @@ -167,12 +167,13 @@ static int demux_cdda_get_status (demux_plugin_t *this_gen) { return this->status; } -/* return the approximate length in seconds */ +/* return the approximate length in miliseconds */ static int demux_cdda_get_stream_length (demux_plugin_t *this_gen) { demux_cdda_t *this = (demux_cdda_t *) this_gen; - return this->input->get_length(this->input) / CD_BYTES_PER_SECOND; + return (int)((int64_t) this->input->get_length(this->input) + * 1000 / CD_BYTES_PER_SECOND); } static uint32_t demux_cdda_get_capabilities(demux_plugin_t *this_gen) |