mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
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:
parent
07226f0d17
commit
4f7e881fcc
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue