aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-07-19 17:16:29 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-07-19 17:16:29 +0800
commit2af8f317369b987e5ae1492bd597bb741df7dcc3 (patch)
tree1e975c5a5ec44b3f84b93ca61492c1d44f337dbb
parenta32ce8185b6600c7c26111ee3b64e6fd8912c567 (diff)
downloadgsoc2013-empathy-2af8f317369b987e5ae1492bd597bb741df7dcc3.tar
gsoc2013-empathy-2af8f317369b987e5ae1492bd597bb741df7dcc3.tar.gz
gsoc2013-empathy-2af8f317369b987e5ae1492bd597bb741df7dcc3.tar.bz2
gsoc2013-empathy-2af8f317369b987e5ae1492bd597bb741df7dcc3.tar.lz
gsoc2013-empathy-2af8f317369b987e5ae1492bd597bb741df7dcc3.tar.xz
gsoc2013-empathy-2af8f317369b987e5ae1492bd597bb741df7dcc3.tar.zst
gsoc2013-empathy-2af8f317369b987e5ae1492bd597bb741df7dcc3.zip
Revert "empathy_call_new_with_streams: prefer StreamedMedia over Call"
Default to Call channels again. https://bugzilla.gnome.org/show_bug.cgi?id=654611 This reverts commit 1cacc0945f81e0513013b83ca7488589dd6c61f7.
-rw-r--r--libempathy-gtk/empathy-call-utils.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/libempathy-gtk/empathy-call-utils.c b/libempathy-gtk/empathy-call-utils.c
index 4e8f6d2cd..2991784f1 100644
--- a/libempathy-gtk/empathy-call-utils.c
+++ b/libempathy-gtk/empathy-call-utils.c
@@ -113,7 +113,7 @@ empathy_call_create_streamed_media_request (const gchar *contact,
}
static void
-create_call_channel_cb (GObject *source,
+create_streamed_media_channel_cb (GObject *source,
GAsyncResult *result,
gpointer user_data)
{
@@ -124,28 +124,28 @@ create_call_channel_cb (GObject *source,
result,
&error))
{
- DEBUG ("Failed to create Call channel: %s", error->message);
+ DEBUG ("Failed to create StreamedMedia channel: %s", error->message);
show_call_error (error);
g_error_free (error);
}
}
static void
-create_streamed_media_channel_cb (GObject *source,
+create_call_channel_cb (GObject *source,
GAsyncResult *result,
gpointer user_data)
{
- TpAccountChannelRequest *call_req = user_data;
+ TpAccountChannelRequest *streamed_media_req = user_data;
GError *error = NULL;
if (tp_account_channel_request_create_channel_finish (
TP_ACCOUNT_CHANNEL_REQUEST (source), result, &error))
{
- g_object_unref (call_req);
+ g_object_unref (streamed_media_req);
return;
}
- DEBUG ("Failed to create StreamedMedia channel: %s", error->message);
+ DEBUG ("Failed to create Call channel: %s", error->message);
if (error->code != TP_ERROR_NOT_IMPLEMENTED)
{
@@ -153,11 +153,11 @@ create_streamed_media_channel_cb (GObject *source,
return;
}
- DEBUG ("Let's try with a Call channel");
+ DEBUG ("Let's try with an StreamedMedia channel");
g_error_free (error);
- tp_account_channel_request_create_channel_async (call_req,
- EMPATHY_CALL_BUS_NAME, NULL,
- create_call_channel_cb,
+ tp_account_channel_request_create_channel_async (streamed_media_req,
+ EMPATHY_AV_BUS_NAME, NULL,
+ create_streamed_media_channel_cb,
NULL);
}
@@ -183,12 +183,12 @@ empathy_call_new_with_streams (const gchar *contact,
streamed_media_request,
timestamp);
- tp_account_channel_request_create_channel_async (streamed_media_req,
- EMPATHY_AV_BUS_NAME, NULL,
- create_streamed_media_channel_cb,
- call_req);
+ tp_account_channel_request_create_channel_async (call_req,
+ EMPATHY_CALL_BUS_NAME, NULL,
+ create_call_channel_cb,
+ streamed_media_req);
g_hash_table_unref (call_request);
g_hash_table_unref (streamed_media_request);
- g_object_unref (streamed_media_req);
+ g_object_unref (call_req);
}