summaryrefslogtreecommitdiffstats
path: root/juk/gstreamerplayer.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2016-03-12 00:59:54 +0100
committerSlávek Banko <slavek.banko@axis.cz>2016-03-12 00:59:54 +0100
commit4d5e6b99d3c2436c34ca8db9720ab331d0190dce (patch)
tree1adf737641faf73e756088e72f59d583d93f2890 /juk/gstreamerplayer.cpp
parentebbe6c574d83e25d4953bbf05d00338f9173d2f6 (diff)
downloadtdemultimedia-4d5e6b99d3c2436c34ca8db9720ab331d0190dce.tar.gz
tdemultimedia-4d5e6b99d3c2436c34ca8db9720ab331d0190dce.zip
Add GStreamer 1.0 support
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'juk/gstreamerplayer.cpp')
-rw-r--r--juk/gstreamerplayer.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/juk/gstreamerplayer.cpp b/juk/gstreamerplayer.cpp
index e77c0ff6..ffd892d4 100644
--- a/juk/gstreamerplayer.cpp
+++ b/juk/gstreamerplayer.cpp
@@ -32,7 +32,7 @@
#define JUK_GLIB_NULL static_cast<gpointer>(0)
-#if GSTREAMER_VERSION == 8
+#if GST_VERSION_MAJOR == 0 && GST_VERSION_MINOR < 10
/******************************************************************************/
/******************************************************************************/
@@ -306,7 +306,11 @@ void GStreamerPlayer::setupPipeline()
}
m_playbin = gst_element_factory_make("playbin", "playbin");
+#if GST_CHECK_VERSION(1,0,0)
+ gst_bus_set_sync_handler(gst_pipeline_get_bus(GST_PIPELINE(m_playbin)), messageHandler, this, 0L);
+#else
gst_bus_set_sync_handler(gst_pipeline_get_bus(GST_PIPELINE(m_playbin)), messageHandler, this);
+#endif
}
long long GStreamerPlayer::time(TimeQuery type) const