[telepathy-stream-engine/master] Pass the bus sync message to the singleton preview too

Olivier Crête olivier.crete at collabora.co.uk
Wed Jul 15 11:40:51 PDT 2009


Was broken by 8607cf2bfb8a2b
---
 src/tp-stream-engine.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/tp-stream-engine.c b/src/tp-stream-engine.c
index 1ed8aad..23d0e43 100644
--- a/src/tp-stream-engine.c
+++ b/src/tp-stream-engine.c
@@ -1193,8 +1193,13 @@ bus_sync_handler (GstBus *bus G_GNUC_UNUSED, GstMessage *message, gpointer data)
         if (!gst_structure_has_name (message->structure, "prepare-xwindow-id"))
           return GST_BUS_PASS;
 
-
         g_mutex_lock (self->priv->mutex);
+
+        handled = tp_stream_engine_video_sink_bus_sync_message (
+            TP_STREAM_ENGINE_VIDEO_SINK (self->priv->preview), message);
+        if (handled)
+          goto done;
+
         for (item = g_list_first (self->priv->preview_sinks);
              item && !handled;
              item = g_list_next (item))
@@ -1220,6 +1225,7 @@ bus_sync_handler (GstBus *bus G_GNUC_UNUSED, GstMessage *message, gpointer data)
                   break;
               }
           }
+      done:
         g_mutex_unlock (self->priv->mutex);
 
         if (handled)
-- 
1.5.6.5




More information about the telepathy-commits mailing list