From 3a488e703ce52f9054664ef4192b116ccd2aae1c Mon Sep 17 00:00:00 2001 From: Paulchen-Panther Date: Tue, 16 Jul 2019 23:49:25 +0200 Subject: [PATCH] Return 0 in QtGrabber::grabFrame() if error occurs in QtGrabber::setupDisplay() Signed-off-by: Paulchen-Panther --- libsrc/grabber/qt/QtGrabber.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libsrc/grabber/qt/QtGrabber.cpp b/libsrc/grabber/qt/QtGrabber.cpp index 9d5e97cc..182ed719 100644 --- a/libsrc/grabber/qt/QtGrabber.cpp +++ b/libsrc/grabber/qt/QtGrabber.cpp @@ -96,6 +96,7 @@ void QtGrabber::geometryChanged(const QRect &geo) int QtGrabber::grabFrame(Image & image) { + if (!_enabled) return 0; if(_screen == nullptr) { // reinit, this will disable capture on failure