Fixed getTotalPlayTime implementation for MP3InputStream.

svn-id: r32755
This commit is contained in:
Johannes Schickel 2008-06-22 13:26:22 +00:00
parent 51000de162
commit d2ce912989

View File

@ -121,7 +121,7 @@ MP3InputStream::MP3InputStream(Common::SeekableReadStream *inStream, bool dispos
mad_timer_add(&length, start);
mad_timer_negate(&length);
if (mad_timer_sign(end) == 0) {
if (mad_timer_sign(end) != 0) {
mad_timer_add(&length, end);
} else {
mad_stream_init(&_stream);