From: Flavio Date: Thu, 14 Apr 2011 21:35:25 +0000 (+0200) Subject: Fix videos not playing due to too short buffering X-Git-Tag: 1.4.2~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=02c5c722991445c92715682da9ba0ec632570f60;p=minitube Fix videos not playing due to too short buffering --- diff --git a/src/MediaView.cpp b/src/MediaView.cpp index ca4ff29..c9ae47f 100644 --- a/src/MediaView.cpp +++ b/src/MediaView.cpp @@ -124,7 +124,7 @@ MediaView::MediaView(QWidget *parent) : QWidget(parent) { #ifdef APP_DEMO demoTimer = new QTimer(this); demoTimer->setSingleShot(true); - demoTimer->setInterval(60000); + demoTimer->setInterval(30000); connect(demoTimer, SIGNAL(timeout()), SLOT(demoMessage())); #endif @@ -196,6 +196,11 @@ void MediaView::disappear() { } void MediaView::handleError(QString message) { + if (message.indexOf("movie atom") != -1 || message.indexOf("Could not open") != -1) { + QTimer::singleShot(1000, this, SLOT(startPlaying())); + return; + } + videoAreaWidget->showError(message); skippedVideo = listModel->activeVideo(); // recover from errors by skipping to the next video