[rhythmbox] xfade: determine if stream needs buffering like uridecodebin does
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] xfade: determine if stream needs buffering like uridecodebin does
- Date: Sun, 30 May 2021 09:52:09 +0000 (UTC)
commit 60ed914ea7c18b132d2b067d8a8e5621c94bc18a
Author: Jonathan Matthew <jonathan d14n org>
Date: Sat May 8 21:17:59 2021 +1000
xfade: determine if stream needs buffering like uridecodebin does
backends/gstreamer/rb-player-gst-xfade.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/backends/gstreamer/rb-player-gst-xfade.c b/backends/gstreamer/rb-player-gst-xfade.c
index 0dbdede11..c780f8495 100644
--- a/backends/gstreamer/rb-player-gst-xfade.c
+++ b/backends/gstreamer/rb-player-gst-xfade.c
@@ -2584,7 +2584,8 @@ stream_src_blocked_cb (GstPad *pad, GstPadProbeInfo *info, RBXFadeStream *stream
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);
+ if (flags & GST_SCHEDULING_FLAG_BANDWIDTH_LIMITED)
+ stream->use_buffering = TRUE;
}
gst_query_unref (query);
g_object_unref (src);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]