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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1565>
This commit is contained in:
Nirbheek Chauhan 2022-01-25 15:05:47 +05:30 committed by GStreamer Marge Bot
parent 07226f0d17
commit 4f7e881fcc

View file

@ -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);