at 18.09-beta 1.4 kB view raw
1From b23b7dab1d540b0710fcb9ded1c6256a49844906 Mon Sep 17 00:00:00 2001 2From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= <bjorn.forsman@gmail.com> 3Date: Wed, 20 Aug 2014 22:22:00 +0200 4Subject: [PATCH] Fix wrong "isProcess" logic 5 6Stopmotion wrongly thinks that uvccapture should be run as a daemon, 7even though configuration for uvccapture has no "daemon-like" command 8line to be run (according to "preferences"). The result is an error 9popup instead of video/image grabbing. 10 11This brings back the "isProcess" logic that was in stopmotion v0.7.2, 12because it seems to work, while the current logic (v0.8.0) seems to 13fail. 14--- 15 src/presentation/frontends/qtfrontend/frameview.cpp | 2 +- 16 1 file changed, 1 insertion(+), 1 deletion(-) 17 18diff --git a/src/presentation/frontends/qtfrontend/frameview.cpp b/src/presentation/frontends/qtfrontend/frameview.cpp 19index e44dca7..d2c41fd 100644 20--- a/src/presentation/frontends/qtfrontend/frameview.cpp 21+++ b/src/presentation/frontends/qtfrontend/frameview.cpp 22@@ -270,7 +270,7 @@ bool FrameView::on() { 23 Preference device(QString("device%1") 24 .arg(activeDev).toLatin1().constData(), ""); 25 QString pre = QString(prepoll.get()).replace("$VIDEODEVICE", device.get()); 26- bool isProcess = startDaemon.get(); 27+ bool isProcess = (strcmp(startDaemon.get(), "") == 0) ? false : true; 28 29 bool isCameraReady = true; 30 this->grabber = new CommandLineGrabber(capturedFile.path(), isProcess); 31-- 322.0.2 33