[rhythmbox/gstreamer-1.0] xfade: make sure there's always a value in the volume control source
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox/gstreamer-1.0] xfade: make sure there's always a value in the volume control source
- Date: Wed, 7 Nov 2012 22:30:57 +0000 (UTC)
commit 4811ac8e0795bc148227efc74b1c3080b24804cc
Author: Jonathan Matthew <jonathan d14n org>
Date: Thu Nov 8 07:02:13 2012 +1000
xfade: make sure there's always a value in the volume control source
The stream errors out during preroll without this.
backends/gstreamer/rb-player-gst-xfade.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/backends/gstreamer/rb-player-gst-xfade.c b/backends/gstreamer/rb-player-gst-xfade.c
index 3d3eba8..164c353 100644
--- a/backends/gstreamer/rb-player-gst-xfade.c
+++ b/backends/gstreamer/rb-player-gst-xfade.c
@@ -2172,6 +2172,7 @@ create_stream (RBPlayerGstXFade *player, const char *uri, gpointer stream_data,
player, 0);
stream->fader = GST_TIMED_VALUE_CONTROL_SOURCE (gst_interpolation_control_source_new ());
+ gst_timed_value_control_source_set (GST_TIMED_VALUE_CONTROL_SOURCE (stream->fader), 0, 1.0);
g_object_set (stream->fader, "mode", GST_INTERPOLATION_MODE_LINEAR, NULL);
gst_object_add_control_binding (GST_OBJECT (stream->volume),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]