aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Input/mad/decoder_mad.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/Input/mad/decoder_mad.cpp')
-rw-r--r--src/plugins/Input/mad/decoder_mad.cpp2
1 files changed, 1 insertions, 1 deletions
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);