gstqtoverlay: Add initialization and finalization to qml-scene prop

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/924>
This commit is contained in:
Val Doroshchuk 2021-03-29 16:45:26 +02:00 committed by GStreamer Marge Bot
parent 4c3906356c
commit 597a226b92
2 changed files with 4 additions and 1 deletions

View file

@ -209,6 +209,7 @@ static void
gst_qt_overlay_init (GstQtOverlay * qt_overlay)
{
qt_overlay->widget = QSharedPointer<QtGLVideoItemInterface>();
qt_overlay->qml_scene = NULL;
}
static void
@ -216,6 +217,9 @@ gst_qt_overlay_finalize (GObject * object)
{
GstQtOverlay *qt_overlay = GST_QT_OVERLAY (object);
g_free (qt_overlay->qml_scene);
qt_overlay->qml_scene = NULL;
qt_overlay->widget.clear();
G_OBJECT_CLASS (parent_class)->finalize (object);

View file

@ -52,7 +52,6 @@ struct _GstQtOverlay
GstGLFilter parent;
gchar *qml_scene;
QQuickItem *root_item;
GstQuickRenderer *renderer;