summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Melanson <mike@multimedia.cx>2004-05-31 14:44:16 +0000
committerMike Melanson <mike@multimedia.cx>2004-05-31 14:44:16 +0000
commit33864ccf1e3bfd972cd6bba0bed31d41950c702f (patch)
treeebdc864d35fe88e9be34fc25264c07a98fa2b48a
parentc41bcffa08bcd93ded2e1f261c0affd99b152cdd (diff)
downloadxine-lib-33864ccf1e3bfd972cd6bba0bed31d41950c702f.tar.gz
xine-lib-33864ccf1e3bfd972cd6bba0bed31d41950c702f.tar.bz2
more appropriate function
CVS patchset: 6616 CVS date: 2004/05/31 14:44:16
-rw-r--r--src/demuxers/demux_wav.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/demuxers/demux_wav.c b/src/demuxers/demux_wav.c
index 175b8a4e0..663176bf2 100644
--- a/src/demuxers/demux_wav.c
+++ b/src/demuxers/demux_wav.c
@@ -22,7 +22,7 @@
* MS WAV File Demuxer by Mike Melanson (melanson@pcisys.net)
* based on WAV specs that are available far and wide
*
- * $Id: demux_wav.c,v 1.57 2004/05/31 14:42:20 hadess Exp $
+ * $Id: demux_wav.c,v 1.58 2004/05/31 14:44:16 tmmm Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -134,9 +134,7 @@ static int open_wav_file(demux_wav_t *this) {
this->data_start = this->input->get_current_pos(this->input);
/* Get the data length from the file itself, instead of the data
* TAG, for broken files */
- this->input->seek(this->input, 0, SEEK_END);
- this->data_size = this->input->get_current_pos(this->input);
- this->input->seek(this->input, this->data_start, SEEK_SET);
+ this->data_size = this->input->get_length(this->input);
} else {
this->input->seek(this->input, chunk_size, SEEK_CUR);
}