[rhythmbox] emit bus message signals from player backends



commit 535c2437d02d1cb241461be03770a7cd3f321d1c
Author: Jonathan Matthew <jonathan d14n org>
Date:   Wed Apr 29 21:58:38 2009 +1000

    emit bus message signals from player backends
    
    This allows plugins to process bus messages easily and without
    much hackery.
---
 backends/gstreamer/rb-player-gst-xfade.c |    3 +++
 backends/gstreamer/rb-player-gst.c       |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/backends/gstreamer/rb-player-gst-xfade.c b/backends/gstreamer/rb-player-gst-xfade.c
index 375e460..22ec512 100644
--- a/backends/gstreamer/rb-player-gst-xfade.c
+++ b/backends/gstreamer/rb-player-gst-xfade.c
@@ -1768,6 +1768,9 @@ rb_player_gst_xfade_bus_cb (GstBus *bus, GstMessage *message, RBPlayerGstXFade *
 	if (stream != NULL)
 		g_object_unref (stream);
 
+	/* emit message signals too, so plugins can process bus messages */
+	gst_bus_async_signal_func (bus, message, NULL);
+
 	return TRUE;
 }
 
diff --git a/backends/gstreamer/rb-player-gst.c b/backends/gstreamer/rb-player-gst.c
index d21b5a3..6645e86 100644
--- a/backends/gstreamer/rb-player-gst.c
+++ b/backends/gstreamer/rb-player-gst.c
@@ -430,6 +430,9 @@ rb_player_gst_bus_cb (GstBus * bus, GstMessage * message, RBPlayerGst *mp)
 		break;
 	}
 
+	/* emit message signals too, so plugins can process messages */
+	gst_bus_async_signal_func (bus, message, NULL);
+
 	return TRUE;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]