From db4715246a5ccb28dd427f467cfdd4a34b4e65ff Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 14 Mar 2014 12:56:45 +0100 Subject: call-channel: pass our factory to TpCallContent objects Partially fix fdo#76168. --- telepathy-glib/call-channel.c | 1 + tests/dbus/call-channel.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/telepathy-glib/call-channel.c b/telepathy-glib/call-channel.c index 59dd90ba7..8ed76323b 100644 --- a/telepathy-glib/call-channel.c +++ b/telepathy-glib/call-channel.c @@ -132,6 +132,7 @@ _tp_call_content_new (TpCallChannel *self, "object-path", object_path, "connection", tp_channel_get_connection ((TpChannel *) self), "channel", self, + "factory", tp_proxy_get_factory (self), NULL); } diff --git a/tests/dbus/call-channel.c b/tests/dbus/call-channel.c index 12bafce78..1269f2bdd 100644 --- a/tests/dbus/call-channel.c +++ b/tests/dbus/call-channel.c @@ -658,7 +658,9 @@ test_basics (Test *test, g_main_loop_run (test->mainloop); g_assert_no_error (test->error); - g_assert (test->added_content != NULL); + g_assert (TP_IS_CALL_CONTENT (test->added_content)); + g_assert (tp_proxy_get_factory (test->added_content) == + tp_proxy_get_factory (test->call_chan)); video_content = test->added_content; tp_tests_proxy_run_until_prepared (video_content, NULL); -- cgit v1.2.1