From 5969138eda602048c8537b960b08d130a703d51c Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 22 Aug 2010 12:04:44 +0000 Subject: MP3: Fix seeking. Formerly we did not read the first chunk of MP3 data after seeking. This resulted in incorrect sound output in the Freddy Pharkas demo when the sound was compressed with MP3 for example. svn-id: r52272 --- sound/decoders/mp3.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sound') diff --git a/sound/decoders/mp3.cpp b/sound/decoders/mp3.cpp index f22eae5102..848ee7e280 100644 --- a/sound/decoders/mp3.cpp +++ b/sound/decoders/mp3.cpp @@ -233,6 +233,8 @@ bool MP3Stream::seek(const Timestamp &where) { while (mad_timer_compare(destination, _totalTime) > 0 && _state != MP3_STATE_EOS) readHeader(); + decodeMP3Data(); + return (_state != MP3_STATE_EOS); } -- cgit v1.2.3