From: unknown Date: Thu, 17 Feb 2011 16:17:44 +0000 (+0100) Subject: Fixed video looping forever on some Phonon backends X-Git-Tag: 1.4.1~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d954d3b98d2a815859690d396c2a2d3fdeaf7240;p=minitube Fixed video looping forever on some Phonon backends --- diff --git a/src/MediaView.cpp b/src/MediaView.cpp index b98ee3c..29ec46d 100644 --- a/src/MediaView.cpp +++ b/src/MediaView.cpp @@ -464,7 +464,9 @@ void MediaView::skip() { } void MediaView::playbackFinished() { - if (mediaObject->currentTime() < mediaObject->totalTime()) { + // qDebug() << "finished" << mediaObject->currentTime() << mediaObject->totalTime(); + // add 10 secs for imprecise Phonon backends (VLC, Xine) + if (mediaObject->currentTime() + 10000 < mediaObject->totalTime()) { // mediaObject->seek(mediaObject->currentTime()); QTimer::singleShot(3000, this, SLOT(playbackResume())); } else skip();