empathy r944 - trunk/libempathy
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r944 - trunk/libempathy
- Date: Tue, 15 Apr 2008 12:26:01 +0100 (BST)
Author: xclaesse
Date: Tue Apr 15 12:26:00 2008
New Revision: 944
URL: http://svn.gnome.org/viewvc/empathy?rev=944&view=rev
Log:
Request audio and video streams if capabilities are unknown.
Modified:
trunk/libempathy/empathy-tp-call.c
Modified: trunk/libempathy/empathy-tp-call.c
==============================================================================
--- trunk/libempathy/empathy-tp-call.c (original)
+++ trunk/libempathy/empathy-tp-call.c Tue Apr 15 12:26:00 2008
@@ -242,6 +242,9 @@
guint handle;
guint stream_type;
+ if (capabilities == EMPATHY_CAPABILITIES_UNKNOWN)
+ capabilities = EMPATHY_CAPABILITIES_AUDIO | EMPATHY_CAPABILITIES_VIDEO;
+
empathy_debug (DEBUG_DOMAIN, "Requesting new stream for capabilities %d",
capabilities);
@@ -270,23 +273,9 @@
tp_call_request_streams (EmpathyTpCall *call)
{
EmpathyTpCallPriv *priv = GET_PRIV (call);
- EmpathyCapabilities capabilities;
- TpConnection *connection;
-
- empathy_debug (DEBUG_DOMAIN,
- "Requesting appropriate audio/video streams from contact");
- /* FIXME: SIP don't have capabilities interface but we know it supports
- * only audio and not video. */
- g_object_get (priv->channel, "connection", &connection, NULL);
- if (!tp_proxy_has_interface_by_id (connection,
- TP_IFACE_QUARK_CONNECTION_INTERFACE_CAPABILITIES))
- capabilities = EMPATHY_CAPABILITIES_AUDIO;
- else
- capabilities = empathy_contact_get_capabilities (priv->contact);
-
- tp_call_request_streams_for_capabilities (call, capabilities);
- g_object_unref (connection);
+ tp_call_request_streams_for_capabilities (call,
+ empathy_contact_get_capabilities (priv->contact));
}
static void
@@ -696,7 +685,9 @@
if (!priv->video->exists)
{
- tp_call_request_streams_for_capabilities (call, EMPATHY_CAPABILITIES_VIDEO);
+ if (is_sending)
+ tp_call_request_streams_for_capabilities (call,
+ EMPATHY_CAPABILITIES_VIDEO);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]