summaryrefslogtreecommitdiffstats
path: root/juk/gstreamerplayer.cpp
diff options
context:
space:
mode:
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