[rhythmbox/gstreamer-1.0] xfade: put stream volume element in passthrough when possible
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox/gstreamer-1.0] xfade: put stream volume element in passthrough when possible
- Date: Sun, 11 Nov 2012 09:31:36 +0000 (UTC)
commit 80faf4603e0863e6f9360b69c2286ffc635f2a14
Author: Jonathan Matthew <jonathan d14n org>
Date: Sun Nov 11 16:55:00 2012 +1000
xfade: put stream volume element in passthrough when possible
This might save a cpu cycle or two.
backends/gstreamer/rb-player-gst-xfade.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/backends/gstreamer/rb-player-gst-xfade.c b/backends/gstreamer/rb-player-gst-xfade.c
index 7d0ab6b..15f6b65 100644
--- a/backends/gstreamer/rb-player-gst-xfade.c
+++ b/backends/gstreamer/rb-player-gst-xfade.c
@@ -937,7 +937,7 @@ volume_changed_cb (GObject *object, GParamSpec *pspec, RBPlayerGstXFade *player)
case FADING_IN:
if (vol > (stream->fade_end - EPSILON) && stream->fading) {
rb_debug ("stream %s fully faded in (at %f) -> PLAYING state", stream->uri, vol);
- /*message = FADE_IN_DONE_MESSAGE;*/ /* not actually used */
+ message = FADE_IN_DONE_MESSAGE;
stream->fading = FALSE;
stream->state = PLAYING;
@@ -1755,7 +1755,7 @@ rb_player_gst_xfade_bus_cb (GstBus *bus, GstMessage *message, RBPlayerGstXFade *
g_list_free (l);
} else if (strcmp (name, FADE_IN_DONE_MESSAGE) == 0) {
- /* do something? */
+ gst_base_transform_set_passthrough (GST_BASE_TRANSFORM (stream->volume), TRUE);
} else if (strcmp (name, FADE_OUT_DONE_MESSAGE) == 0) {
switch (stream->state) {
case FADING_OUT:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]