From 0a74e1c0e3781afe041ba9acc361461cc3ebda82 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 12 Oct 2008 09:55:07 +0000 Subject: fixed seeking bug git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@580 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/mad/decoder_mad.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/Input/mad/decoder_mad.cpp') diff --git a/src/plugins/Input/mad/decoder_mad.cpp b/src/plugins/Input/mad/decoder_mad.cpp index 74b7c124a..0eab8cfaa 100644 --- a/src/plugins/Input/mad/decoder_mad.cpp +++ b/src/plugins/Input/mad/decoder_mad.cpp @@ -408,7 +408,7 @@ void DecoderMAD::run() { mutex()->lock(); - if (seekTime >= 0.0) + if (seekTime >= 0.0 && totalTime > 0) { long seek_pos = long(seekTime * input()->size() / totalTime); input()->seek(seek_pos); -- cgit v1.2.3-13-gbd6f