From 77ecf6954f81c3e1b9589d2d14b79f839022e690 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Fri, 10 Jan 2003 21:10:50 +0000 Subject: have length in miliseconds too fix some intermediate calculation CVS patchset: 3856 CVS date: 2003/01/10 21:10:50 --- src/demuxers/demux_cdda.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/demuxers/demux_cdda.c') 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) -- cgit v1.2.3