From b0670de5f493e7226449e550929e4308b609007a Mon Sep 17 00:00:00 2001 From: Goutough Date: Mon, 17 Sep 2012 12:56:23 +0200 Subject: [PATCH] Fix bug that prevented correct detection of video end in some cases. --- src/qmpwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qmpwidget.cpp b/src/qmpwidget.cpp index c29aefd..42e80cf 100644 --- a/src/qmpwidget.cpp +++ b/src/qmpwidget.cpp @@ -509,7 +509,7 @@ class QMPProcess : public QProcess // If the movie is near its end, start a timer that will check whether // the movie has really finished. - if (qAbs(m_streamPosition - m_mediaInfo.length) < 1) { + if ((m_streamPosition - m_mediaInfo.length) < 1) { m_movieFinishedTimer.start(); } } -- 2.11.4.GIT