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
This commit is contained in:
Johannes Schickel 2010-08-22 12:04:44 +00:00
parent a503f9223a
commit 5969138eda

View File

@ -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);
}