summaryrefslogtreecommitdiffstats
path: root/libmpv/qml_direct/main.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-09 12:32:52 +0200
committerwm4 <wm4@nowhere>2016-09-09 12:32:52 +0200
commita7b959cdfed6801d27963808f91eca0abb146b7e (patch)
tree43616dc299c22db2aca52640cfd4a89dde9cce70 /libmpv/qml_direct/main.h
parente8bc5e5d837e517288ab8149fa29d3547f7a8b0e (diff)
downloadmpv-examples-a7b959cdfed6801d27963808f91eca0abb146b7e.tar.bz2
mpv-examples-a7b959cdfed6801d27963808f91eca0abb146b7e.tar.xz
qml_direct: add a test for mpv_opengl_cb_uninit_gl()
That function is awfully corner-caseish, so it's nice to have a good way to test it.
Diffstat (limited to 'libmpv/qml_direct/main.h')
-rw-r--r--libmpv/qml_direct/main.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpv/qml_direct/main.h b/libmpv/qml_direct/main.h
index b0310ff..c872b56 100644
--- a/libmpv/qml_direct/main.h
+++ b/libmpv/qml_direct/main.h
@@ -30,6 +30,7 @@ class MpvObject : public QQuickItem
mpv::qt::Handle mpv;
mpv_opengl_cb_context *mpv_gl;
MpvRenderer *renderer;
+ bool killOnce;
public:
MpvObject(QQuickItem * parent = 0);
@@ -39,6 +40,7 @@ public slots:
void sync();
void swapped();
void cleanup();
+ void reinitRenderer();
signals:
void onUpdate();
private slots: