This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:

Subject: qv4l2: Fix GL Capture not redrawing after close
Author:  Tasos Sahanidis <ta...@tasossah.com>
Date:    Thu May 9 15:47:19 2019 +0300

Closing the GL capture window and then reopening it would cause it
to become blank and not render any frames.

This is fixed by ignoring the close event and hiding the widget
manually in the event handler.

Signed-off-by: Tasos Sahanidis <ta...@tasossah.com>
Signed-off-by: Hans Verkuil <hverkuil-ci...@xs4all.nl>

 utils/qv4l2/capture-win-gl.cpp | 7 +++++++
 utils/qv4l2/capture-win-gl.h   | 1 +
 2 files changed, 8 insertions(+)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=449f9cc496b513ad4033f53da6b5a225c47b17e0
diff --git a/utils/qv4l2/capture-win-gl.cpp b/utils/qv4l2/capture-win-gl.cpp
index fc8e7f456a62..05659259d42f 100644
--- a/utils/qv4l2/capture-win-gl.cpp
+++ b/utils/qv4l2/capture-win-gl.cpp
@@ -44,6 +44,13 @@ void CaptureWinGL::stop()
 #endif
 }
 
+void CaptureWinGL::closeEvent(QCloseEvent *event)
+{
+       this->hide();
+       event->ignore();
+       emit close();
+}
+
 void CaptureWinGL::resizeEvent(QResizeEvent *event)
 {
 #ifdef HAVE_QTGL
diff --git a/utils/qv4l2/capture-win-gl.h b/utils/qv4l2/capture-win-gl.h
index 63b7c65fff8c..35235d7a835c 100644
--- a/utils/qv4l2/capture-win-gl.h
+++ b/utils/qv4l2/capture-win-gl.h
@@ -139,6 +139,7 @@ public:
 protected:
        void resizeEvent(QResizeEvent *event);
        void setRenderFrame();
+       void closeEvent(QCloseEvent *event);
 
 private:
 #ifdef HAVE_QTGL

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to