From 49e7fb6bf0115e2895bd2234eabb271b35a923a6 Mon Sep 17 00:00:00 2001 From: Kelvie Wong Date: Fri, 11 Dec 2009 19:28:37 -0800 Subject: TTA demux: fix buffer->extra_info->total_time Supposed to be in milliseconds; totalframes is only approx. total seconds. --- src/demuxers/demux_tta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/demuxers/demux_tta.c b/src/demuxers/demux_tta.c index ebb51b100..1b50edcd4 100644 --- a/src/demuxers/demux_tta.c +++ b/src/demuxers/demux_tta.c @@ -130,7 +130,7 @@ static int demux_tta_send_chunk(demux_plugin_t *this_gen) { buf = this->audio_fifo->buffer_pool_alloc(this->audio_fifo); buf->type = BUF_AUDIO_TTA; buf->pts = 0; - buf->extra_info->total_time = this->totalframes; + buf->extra_info->total_time = (int)(FRAME_TIME * this->totalframes)*1000; buf->decoder_flags = 0; /* Set normalised position */ -- cgit v1.2.3