[empathy/gnome-3-0] Enable audio/video capabilities if InitialAudio/Video is in the fixed props for StreamedMedia channe
- From: Danielle Madeley <daniellem src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy/gnome-3-0] Enable audio/video capabilities if InitialAudio/Video is in the fixed props for StreamedMedia channe
- Date: Wed, 13 Apr 2011 00:30:34 +0000 (UTC)
commit 213de201cc61d2ef985d5fed52b824a2c19bde2a
Author: Youness Alaoui <youness alaoui collabora co uk>
Date: Mon Apr 4 21:41:40 2011 -0400
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.
libempathy/empathy-contact.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index bf0da38..680094a 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;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]