From 4f7e881fcc2e6df3ce04584cf5edb07b2682891a Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Tue, 25 Jan 2022 15:05:47 +0530 Subject: [PATCH] qt: Retain compatibility with Qt 5.9 QSharedPointer.get() was added in Qt 5.11, and it does the same thing as .data() https://doc.qt.io/qt-5/qsharedpointer.html#get Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/867 Part-of: --- .../tests/examples/qt/qmlsink-multisink/videoitem/videoitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-good/tests/examples/qt/qmlsink-multisink/videoitem/videoitem.cpp b/subprojects/gst-plugins-good/tests/examples/qt/qmlsink-multisink/videoitem/videoitem.cpp index 711c65dfd8..9d2bb09af1 100644 --- a/subprojects/gst-plugins-good/tests/examples/qt/qmlsink-multisink/videoitem/videoitem.cpp +++ b/subprojects/gst-plugins-good/tests/examples/qt/qmlsink-multisink/videoitem/videoitem.cpp @@ -151,7 +151,7 @@ VideoItem::VideoItem(QQuickItem *parent) // add watch _priv->bus = gst_pipeline_get_bus(GST_PIPELINE(_priv->pipeline)); - gst_bus_set_sync_handler(_priv->bus, messageHandler, _priv.get(), nullptr); + gst_bus_set_sync_handler(_priv->bus, messageHandler, _priv.data(), nullptr); gst_element_set_state(_priv->pipeline, GST_STATE_READY); gst_element_get_state(_priv->pipeline, nullptr, nullptr, _priv->timeout * GST_MSECOND);