From 7e2200bf14e4dfc4fc65be154931e990912ca976 Mon Sep 17 00:00:00 2001 From: Cristian Maureira-Fredes Date: Wed, 29 Aug 2018 14:33:23 +0200 Subject: Support for QAbstractVideoSurface in QMediaPlayer The method setVideoOutput did not have support for an QAbstractVideoSurface argument, so I included one with the same idea of the other signatures. Task-number: PYSIDE-794 Change-Id: I50c82eeb1c2c3157c21dc4eb6cff7b0c2b91f31f Reviewed-by: Friedemann Kleint --- .../PySide2/QtMultimedia/typesystem_multimedia_common.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'sources/pyside2/PySide2/QtMultimedia/typesystem_multimedia_common.xml') diff --git a/sources/pyside2/PySide2/QtMultimedia/typesystem_multimedia_common.xml b/sources/pyside2/PySide2/QtMultimedia/typesystem_multimedia_common.xml index 5486fb157..6fe90ccb9 100644 --- a/sources/pyside2/PySide2/QtMultimedia/typesystem_multimedia_common.xml +++ b/sources/pyside2/PySide2/QtMultimedia/typesystem_multimedia_common.xml @@ -302,6 +302,17 @@ %END_ALLOW_THREADS + + + + + + %BEGIN_ALLOW_THREADS + QObject* upcastedArg = %CONVERTTOCPP[QObject*](%PYARG_1); + %CPPSELF.%FUNCTION_NAME(reinterpret_cast< %ARG1_TYPE >(upcastedArg)); + %END_ALLOW_THREADS + + -- cgit v1.2.3