aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYouness Alaoui <youness.alaoui@collabora.co.uk>2011-04-05 09:41:40 +0800
committerDanielle Madeley <danielle.madeley@collabora.co.uk>2011-04-13 08:30:07 +0800
commit213de201cc61d2ef985d5fed52b824a2c19bde2a (patch)
treef0b6f900b6942c42bf7c56e8b215dc2e4cb54383
parent10d7351ff8da146ae19652186094b5fb3fde3ebd (diff)
downloadgsoc2013-empathy-213de201cc61d2ef985d5fed52b824a2c19bde2a.tar
gsoc2013-empathy-213de201cc61d2ef985d5fed52b824a2c19bde2a.tar.gz
gsoc2013-empathy-213de201cc61d2ef985d5fed52b824a2c19bde2a.tar.bz2
gsoc2013-empathy-213de201cc61d2ef985d5fed52b824a2c19bde2a.tar.lz
gsoc2013-empathy-213de201cc61d2ef985d5fed52b824a2c19bde2a.tar.xz
gsoc2013-empathy-213de201cc61d2ef985d5fed52b824a2c19bde2a.tar.zst
gsoc2013-empathy-213de201cc61d2ef985d5fed52b824a2c19bde2a.zip
Enable audio/video capabilities if InitialAudio/Video is in the fixed props for StreamedMedia channels If a connection manager puts InitialAudio=TRUE or InitialVideo=TRUE in the fixed properties, empathy thinks the CM doesn't support audio/video.
-rw-r--r--libempathy/empathy-contact.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index bf0da384c..680094a54 100644
--- a/libempathy/empathy-contact.c
+++ b/libempathy/empathy-contact.c
@@ -1721,6 +1721,13 @@ tp_caps_to_capabilities (TpCapabilities *caps)
TP_PROP_CHANNEL_TYPE_STREAMED_MEDIA_INITIAL_VIDEO))
capabilities |= EMPATHY_CAPABILITIES_VIDEO;
}
+
+ if (tp_asv_get_boolean (fixed_prop,
+ TP_PROP_CHANNEL_TYPE_STREAMED_MEDIA_INITIAL_AUDIO, NULL))
+ capabilities |= EMPATHY_CAPABILITIES_AUDIO;
+ if (tp_asv_get_boolean (fixed_prop,
+ TP_PROP_CHANNEL_TYPE_STREAMED_MEDIA_INITIAL_VIDEO, NULL))
+ capabilities |= EMPATHY_CAPABILITIES_VIDEO;
}
}