mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +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)
|
gst_qt_overlay_init (GstQtOverlay * qt_overlay)
|
||||||
{
|
{
|
||||||
qt_overlay->widget = QSharedPointer<QtGLVideoItemInterface>();
|
qt_overlay->widget = QSharedPointer<QtGLVideoItemInterface>();
|
||||||
|
qt_overlay->qml_scene = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -216,6 +217,9 @@ gst_qt_overlay_finalize (GObject * object)
|
||||||
{
|
{
|
||||||
GstQtOverlay *qt_overlay = GST_QT_OVERLAY (object);
|
GstQtOverlay *qt_overlay = GST_QT_OVERLAY (object);
|
||||||
|
|
||||||
|
g_free (qt_overlay->qml_scene);
|
||||||
|
qt_overlay->qml_scene = NULL;
|
||||||
|
|
||||||
qt_overlay->widget.clear();
|
qt_overlay->widget.clear();
|
||||||
|
|
||||||
G_OBJECT_CLASS (parent_class)->finalize (object);
|
G_OBJECT_CLASS (parent_class)->finalize (object);
|
||||||
|
|
|
@ -52,7 +52,6 @@ struct _GstQtOverlay
|
||||||
GstGLFilter parent;
|
GstGLFilter parent;
|
||||||
|
|
||||||
gchar *qml_scene;
|
gchar *qml_scene;
|
||||||
QQuickItem *root_item;
|
|
||||||
|
|
||||||
GstQuickRenderer *renderer;
|
GstQuickRenderer *renderer;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue