summaryrefslogtreecommitdiffstats
path: root/DOCS/client_api_examples/qml/mpvtest.pro
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-30 22:34:34 +0100
committerwm4 <wm4@nowhere>2014-12-30 22:40:25 +0100
commit10f51a8c57e857ab8ed09a04237879f8bb329a0f (patch)
tree5c03034fc1d2e8e688b6dbf6c7c70b338b12c2c4 /DOCS/client_api_examples/qml/mpvtest.pro
parent50c40b6dedcaf35bd2af68a3535b023c871d1295 (diff)
downloadmpv-10f51a8c57e857ab8ed09a04237879f8bb329a0f.tar.bz2
mpv-10f51a8c57e857ab8ed09a04237879f8bb329a0f.tar.xz
DOCS/client_api_examples: qtquick: fix destruction
Destruction (e.g. when closing the window) was a bit broken. This commit fixes some possible crashes, and should make lifetime management relatively sane. (Still a bit complex, though. Maybe this code should be moved into a tiny library.) QtQuick runs the renderer on a separate thread. This thread is rather loosely connected to the main thread. The loose separation is enforced by the API, which also makes coordination of initialization and destruction harder. Throw refcounting at the problem, which fixes it. The refcounting wrapper introduced in the previous commit is used for this. Also contains some general cleanups.
Diffstat (limited to 'DOCS/client_api_examples/qml/mpvtest.pro')
-rw-r--r--DOCS/client_api_examples/qml/mpvtest.pro2
1 files changed, 1 insertions, 1 deletions
diff --git a/DOCS/client_api_examples/qml/mpvtest.pro b/DOCS/client_api_examples/qml/mpvtest.pro
index 6681fa1884..df497e4dba 100644
--- a/DOCS/client_api_examples/qml/mpvtest.pro
+++ b/DOCS/client_api_examples/qml/mpvtest.pro
@@ -4,7 +4,7 @@ HEADERS += mpvrenderer.h
SOURCES += mpvrenderer.cpp main.cpp
CONFIG += link_pkgconfig debug
-PKGCONFIG = mpv
+PKGCONFIG += mpv
RESOURCES += mpvtest.qrc