[rhythmbox] xfade: handle bus messages with a pad as the message source
- From: Jonathan Matthew <jmatthew src gnome org>
- To: svn-commits-list gnome org
- Subject: [rhythmbox] xfade: handle bus messages with a pad as the message source
- Date: Tue, 12 May 2009 08:48:26 -0400 (EDT)
commit 656d481f8112fd41b7bb402203c2dadf9ff9246c
Author: Jonathan Matthew <jonathan d14n org>
Date: Tue May 12 22:45:04 2009 +1000
xfade: handle bus messages with a pad as the message source
There aren't any messages like this that we need to process yet,
so we just get the pad's parent and continue as normal.
---
backends/gstreamer/rb-player-gst-xfade.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/backends/gstreamer/rb-player-gst-xfade.c b/backends/gstreamer/rb-player-gst-xfade.c
index bfea931..0ae4c2f 100644
--- a/backends/gstreamer/rb-player-gst-xfade.c
+++ b/backends/gstreamer/rb-player-gst-xfade.c
@@ -1572,6 +1572,9 @@ rb_player_gst_xfade_bus_cb (GstBus *bus, GstMessage *message, RBPlayerGstXFade *
g_static_rec_mutex_lock (&player->priv->stream_list_lock);
message_src = GST_MESSAGE_SRC (message);
+ if (GST_IS_PAD (message_src)) {
+ message_src = GST_OBJECT_PARENT (message_src);
+ }
stream = find_stream_by_element (player, GST_ELEMENT (message_src));
g_static_rec_mutex_unlock (&player->priv->stream_list_lock);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]