summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Oehlinger <richard.oehlinger@adbsafegate.com>2019-03-18 10:15:13 +0100
committerRichard Öhlinger <richard.oehlinger@adbsafegate.com>2019-03-18 10:43:05 +0000
commit935967a453b47ae7c8e9ad3d94eef3813eab58db (patch)
tree8a734ab6b51a17ef6e0a0741cf5412f6452d3648
parent256d0cebb83bbcfd087c510a5901a875740fa791 (diff)
downloadqtmultimedia-935967a453b47ae7c8e9ad3d94eef3813eab58db.tar.gz
Fix compile failure with gstreamer 0.10
This fixes an compile failure introduced in commit 67c4ec55. Fixes: QTBUG-74475 Change-Id: I0dabb72f8b5cdd75336b15515381ff9d9442788f Reviewed-by: VaL Doroshchuk <valentyn.doroshchuk@qt.io>
-rw-r--r--src/gsttools/qgstreamerplayersession.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gsttools/qgstreamerplayersession.cpp b/src/gsttools/qgstreamerplayersession.cpp
index f21c94c5c..9858f61c9 100644
--- a/src/gsttools/qgstreamerplayersession.cpp
+++ b/src/gsttools/qgstreamerplayersession.cpp
@@ -402,9 +402,14 @@ void QGstreamerPlayerSession::setPipeline(GstElement *pipeline)
if (m_renderer) {
auto it = gst_bin_iterate_sinks(GST_BIN(pipeline));
+#if GST_CHECK_VERSION(1,0,0)
GValue data = { 0, 0 };
while (gst_iterator_next (it, &data) == GST_ITERATOR_OK) {
auto child = static_cast<GstElement*>(g_value_get_object(&data));
+#else
+ GstElement *child = nullptr;
+ while (gst_iterator_next(it, reinterpret_cast<gpointer *>(&child)) == GST_ITERATOR_OK) {
+#endif
if (QLatin1String(GST_OBJECT_NAME(child)) == QLatin1String("qtvideosink")) {
m_renderer->setVideoSink(child);
break;