mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
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:
parent
4c3906356c
commit
597a226b92
2 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -52,7 +52,6 @@ struct _GstQtOverlay
|
|||
GstGLFilter parent;
|
||||
|
||||
gchar *qml_scene;
|
||||
QQuickItem *root_item;
|
||||
|
||||
GstQuickRenderer *renderer;
|
||||
|
||||
|
|
Loading…
Reference in a new issue