diff options
author | Matthew Waters <matthew@centricular.com> | 2020-05-18 06:17:14 +0300 |
---|---|---|
committer | GStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2020-05-20 22:37:32 +0300 |
commit | 8a8c8afc867891d16c70ee411228d732c4c4fcd0 (patch) | |
tree | c179119e0d72574814549f4a66c60106a4b34143 /tests | |
parent | 2c278bb2ab498216ef444a9b22ea85631ad43f0f (diff) |
qtoverlay: add the root item as a property
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/595>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/examples/qt/qmloverlay/main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/examples/qt/qmloverlay/main.cpp b/tests/examples/qt/qmloverlay/main.cpp index 26f20b9d5..dbe362939 100644 --- a/tests/examples/qt/qmloverlay/main.cpp +++ b/tests/examples/qt/qmloverlay/main.cpp @@ -37,10 +37,11 @@ SetPlaying::run () } static void -on_overlay_scene_initialized (GstElement * overlay, gpointer root_item, gpointer unused) +on_overlay_scene_initialized (GstElement * overlay, gpointer unused) { + QQuickItem *rootObject; GST_INFO ("scene initialized"); - QQuickItem *rootObject = static_cast<QQuickItem *> (root_item); + g_object_get (overlay, "root-item", &rootObject, NULL); QQuickItem *videoItem = rootObject->findChild<QQuickItem *> ("inputVideoItem"); g_object_set (overlay, "widget", videoItem, NULL); } |