diff options
author | Claudio Ciccani <klan@users.sourceforge.net> | 2006-11-21 18:26:01 +0000 |
---|---|---|
committer | Claudio Ciccani <klan@users.sourceforge.net> | 2006-11-21 18:26:01 +0000 |
commit | 362e1a0a23b4e92a693d76f2eb2583d8c4cc9e5c (patch) | |
tree | efc85d444e2d97fd21d7bde9520790d3dba219fc /src | |
parent | 4b5bd6c38ff98c4fb017e2ee819d0ecfe202bbff (diff) | |
download | xine-lib-362e1a0a23b4e92a693d76f2eb2583d8c4cc9e5c.tar.gz xine-lib-362e1a0a23b4e92a693d76f2eb2583d8c4cc9e5c.tar.bz2 |
Compute (and return) the actual stream length.
CVS patchset: 8386
CVS date: 2006/11/21 18:26:01
Diffstat (limited to 'src')
-rw-r--r-- | src/demuxers/demux_asf.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); |