From 02c5c722991445c92715682da9ba0ec632570f60 Mon Sep 17 00:00:00 2001 From: Flavio Date: Thu, 14 Apr 2011 23:35:25 +0200 Subject: [PATCH] Fix videos not playing due to too short buffering --- src/MediaView.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.39.5