qt: Use a proxy object for access to the QML widget
authorJan Schmidt <jan@centricular.com>
Wed, 12 Jul 2017 05:29:32 +0000 (15:29 +1000)
committerJan Schmidt <jan@centricular.com>
Wed, 12 Jul 2017 05:51:11 +0000 (15:51 +1000)
commitac068bd2b9274aa0d812a7611a601c08fc1958ff
treec32c2351569256baa47406f8e22115ec916a7d4a
parentde26b9e5f32e8d0603716004b68cec36929c1c02
qt: Use a proxy object for access to the QML widget

QML can destroy the video widget at any time, leaving
us with a dangling pointer. Use a lock and a proxy
object to cope with that, and block in the widget
destructor if there are ongoing calls into the widget.
ext/qt/gstqtsink.cc
ext/qt/gstqtsink.h
ext/qt/qtitem.cc
ext/qt/qtitem.h