From 362e1a0a23b4e92a693d76f2eb2583d8c4cc9e5c Mon Sep 17 00:00:00 2001 From: Claudio Ciccani Date: Tue, 21 Nov 2006 18:26:01 +0000 Subject: Compute (and return) the actual stream length. CVS patchset: 8386 CVS date: 2006/11/21 18:26:01 --- src/demuxers/demux_asf.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/demuxers/demux_asf.c b/src/demuxers/demux_asf.c index 92042c6bc..80b90b9ae 100644 --- a/src/demuxers/demux_asf.c +++ b/src/demuxers/demux_asf.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_asf.c,v 1.185 2006/10/07 09:59:49 klan Exp $ + * $Id: demux_asf.c,v 1.186 2006/11/21 18:26:01 klan Exp $ * * demultiplexer for asf streams * @@ -401,6 +401,9 @@ static int asf_read_header (demux_asf_t *this) { this->packet_size = this->asf_header->file->packet_size; this->packet_count = this->asf_header->file->data_packet_count; + + this->length = (this->asf_header->file->send_duration - + this->asf_header->file->preroll) / 10000; _x_stream_info_set(this->stream, XINE_STREAM_INFO_BITRATE, this->asf_header->file->max_bitrate); -- cgit v1.2.3