telepathy-glib: call-channel: pass our factory to TpCallStream objects

Guillaume Desmottes gdesmott at kemper.freedesktop.org
Fri Mar 14 07:38:30 PDT 2014


Module: telepathy-glib
Branch: master
Commit: 9415b529a87ed63faa770799655c9506c86ea6b4
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=9415b529a87ed63faa770799655c9506c86ea6b4

Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date:   Fri Mar 14 12:56:45 2014 +0100

call-channel: pass our factory to TpCallStream objects

Partially fix fdo#76168.

---

 telepathy-glib/call-content.c |    1 +
 tests/dbus/call-channel.c     |    4 ++++
 2 files changed, 5 insertions(+)

diff --git a/telepathy-glib/call-content.c b/telepathy-glib/call-content.c
index 071e304..c0f98e5 100644
--- a/telepathy-glib/call-content.c
+++ b/telepathy-glib/call-content.c
@@ -118,6 +118,7 @@ _tp_call_stream_new (TpCallContent *self,
       "object-path", object_path,
       "connection", self->priv->connection,
       "content", self,
+      "factory", tp_proxy_get_factory (self),
       NULL);
 }
 
diff --git a/tests/dbus/call-channel.c b/tests/dbus/call-channel.c
index 1269f2b..89e1ae5 100644
--- a/tests/dbus/call-channel.c
+++ b/tests/dbus/call-channel.c
@@ -577,6 +577,8 @@ test_basics (Test *test,
       tp_channel_get_target_contact (test->chan));
   g_assert_cmpuint (GPOINTER_TO_UINT (v), ==,
       TP_SENDING_STATE_PENDING_SEND);
+  g_assert (tp_proxy_get_factory (audio_stream) ==
+      tp_proxy_get_factory (test->call_chan));
 
   g_assert_cmpuint (tp_call_stream_get_local_sending_state (audio_stream),
       ==, TP_SENDING_STATE_SENDING);
@@ -697,6 +699,8 @@ test_basics (Test *test,
   g_assert_cmpuint (g_hash_table_size (remote_members), ==, 1);
   v = g_hash_table_lookup (remote_members,
       tp_channel_get_target_contact (test->chan));
+  g_assert (tp_proxy_get_factory (video_stream) ==
+      tp_proxy_get_factory (test->call_chan));
 
   /* After a moment, the video stream becomes connected, and the remote user
    * accepts our proposed direction change. These might happen in either



More information about the telepathy-commits mailing list