]> git.0d.be Git - empathy.git/commitdiff
Farstream port of tp-av oops
authorOlivier Crête <olivier.crete@collabora.com>
Thu, 1 Mar 2012 16:58:23 +0000 (11:58 -0500)
committerOlivier Crête <olivier.crete@collabora.com>
Thu, 1 Mar 2012 16:58:26 +0000 (11:58 -0500)
src/empathy-streamed-media-handler.c

index fe04a8faa8e681a4dce51bba70e724e1a1bf31e7..0fc55964a62e33aa204bba7c140bea3d414ef939 100644 (file)
@@ -699,9 +699,12 @@ empathy_streamed_media_handler_start_tpfs (GAsyncInitable *initable,
 {
   EmpathyStreamedMediaHandlerPriv *priv = GET_PRIV (self);
   GError *error = NULL;
+  GPtrArray *conferences;
 
   if (g_async_initable_init_finish (initable, res, &error))
     {
+      priv->tfchannel = TF_CHANNEL (initable);
+
       /* Set up the telepathy farsight channel */
       g_signal_connect (priv->tfchannel, "fs-conference-added",
           G_CALLBACK (empathy_streamed_media_handler_tf_channel_conference_added_cb), self);
@@ -713,6 +716,15 @@ empathy_streamed_media_handler_start_tpfs (GAsyncInitable *initable,
       g_signal_connect (priv->tfchannel, "closed",
           G_CALLBACK (empathy_streamed_media_handler_tf_channel_closed_cb), self);
 
+      g_object_get (priv->tfchannel, "fs-conferences", &conferences, NULL);
+      if (conferences)
+        {
+          if (conferences->len > 0)
+            empathy_streamed_media_handler_tf_channel_conference_added_cb (
+                priv->tfchannel, g_ptr_array_index (conferences, 0), self);
+          g_ptr_array_unref (conferences);
+        }
+
 
       /* FIXME: In which condition do we call this ? */
       empathy_tp_streamed_media_accept_incoming_call (priv->call);