[rhythmbox] require GStreamer 1.4.0 or newer
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] require GStreamer 1.4.0 or newer
- Date: Wed, 16 Mar 2016 06:59:44 +0000 (UTC)
commit 6b6c283b18a33d25000874456e77a579f19510cd
Author: Jonathan Matthew <jonathan d14n org>
Date: Tue Mar 15 10:25:58 2016 +1000
require GStreamer 1.4.0 or newer
This allows us to use playbin's audio-filter property to insert
filters into the pipeline.
backends/gstreamer/rb-player-gst-xfade.c | 28 ++++++++++++----------------
configure.ac | 2 +-
2 files changed, 13 insertions(+), 17 deletions(-)
---
diff --git a/backends/gstreamer/rb-player-gst-xfade.c b/backends/gstreamer/rb-player-gst-xfade.c
index 0548804..f449b7d 100644
--- a/backends/gstreamer/rb-player-gst-xfade.c
+++ b/backends/gstreamer/rb-player-gst-xfade.c
@@ -2602,6 +2602,8 @@ stream_src_blocked_cb (GstPad *pad, GstPadProbeInfo *info, RBXFadeStream *stream
{
GError *error = NULL;
gboolean start_stream = FALSE;
+ GstElement *src;
+ GstQuery *query;
g_mutex_lock (&stream->lock);
if (stream->src_blocked) {
@@ -2616,23 +2618,17 @@ stream_src_blocked_cb (GstPad *pad, GstPadProbeInfo *info, RBXFadeStream *stream
"max-size-buffers", 200, /* back to normal value */
NULL);
-#if GST_CHECK_VERSION(1,2,0)
- {
- GstElement *src;
- GstQuery *query;
- g_object_get (stream->decoder, "source", &src, NULL);
- query = gst_query_new_scheduling ();
- if (gst_element_query (src, query)) {
- GstSchedulingFlags flags;
- gst_query_parse_scheduling (query, &flags, NULL, NULL, NULL);
+ g_object_get (stream->decoder, "source", &src, NULL);
+ query = gst_query_new_scheduling ();
+ if (gst_element_query (src, query)) {
+ GstSchedulingFlags flags;
+ gst_query_parse_scheduling (query, &flags, NULL, NULL, NULL);
- /* this matches how uridecodebin decides whether to do buffering */
- stream->use_buffering = (flags & GST_SCHEDULING_FLAG_BANDWIDTH_LIMITED);
- }
- gst_query_unref (query);
- g_object_unref (src);
+ /* this matches how uridecodebin decides whether to do buffering */
+ stream->use_buffering = (flags & GST_SCHEDULING_FLAG_BANDWIDTH_LIMITED);
}
-#endif
+ gst_query_unref (query);
+ g_object_unref (src);
if (stream->use_buffering) {
rb_debug ("stream %s requires buffering", stream->uri);
diff --git a/configure.ac b/configure.ac
index 2e8fb1c..c96d55b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -44,7 +44,7 @@ AC_CHECK_SIZEOF(long)
GTK_REQS=3.12.0
-GST_REQS=1.0.0
+GST_REQS=1.4.0
GDK_PIXBUF_REQS=2.18.0
GLIB_REQS=2.34.0
LIBGPOD_REQS=0.6
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]