diff options
author | VaL Doroshchuk <valentyn.doroshchuk@qt.io> | 2019-10-18 09:15:36 +0200 |
---|---|---|
committer | VaL Doroshchuk <valentyn.doroshchuk@qt.io> | 2019-10-24 14:06:46 +0200 |
commit | b332456c38241d663d1eef3636129ea82fd00564 (patch) | |
tree | f143792119326cdb496f1a81254aa29bb86e835a | |
parent | d9359a35ff059cc81c155764f4c234d03655bd45 (diff) |
Release ownership in QAbstractVideoFilterWrapper::createFilterRunnable
QAbstractVideoFilter::createFilterRunnable() is supposed to be called only
from VideoOutput QML element when paint event is received,
where the QML element takes the ownership of returned QVideoFilterRunnable object.
Need to release the ownership, so Python will not delete the underlying C++ object.
Fixes: PYSIDE-785
Change-Id: I041d9a43cafaf42d638778ea70b8a115276805b1
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
-rw-r--r-- | sources/pyside2/PySide2/QtMultimedia/typesystem_multimedia_common.xml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sources/pyside2/PySide2/QtMultimedia/typesystem_multimedia_common.xml b/sources/pyside2/PySide2/QtMultimedia/typesystem_multimedia_common.xml index f7ac67857..95a29cbb8 100644 --- a/sources/pyside2/PySide2/QtMultimedia/typesystem_multimedia_common.xml +++ b/sources/pyside2/PySide2/QtMultimedia/typesystem_multimedia_common.xml @@ -82,7 +82,13 @@ <object-type name="QAbstractVideoSurface"> <enum-type name="Error"/> </object-type> - <object-type name="QAbstractVideoFilter"/> + <object-type name="QAbstractVideoFilter"> + <modify-function signature="createFilterRunnable()"> + <modify-argument index="return"> + <define-ownership class="native" owner="c++"/> + </modify-argument> + </modify-function> + </object-type> <value-type name="QVideoFrame"> <enum-type name="FieldType"/> <enum-type name="PixelFormat"/> |