summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2012-09-07 15:19:30 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2012-09-11 11:21:44 +0100
commitda14b4e86d503b30054b10b5e7b00eae7ba1add5 (patch)
tree601aa9db9838c302d3ff6c852ac37f2dc83bafa4
parentfbfa8c138da1a4f00c74af4bda98e858a203a58b (diff)
downloadtelepathy-gabble-da14b4e86d503b30054b10b5e7b00eae7ba1add5.tar.gz
Now that camera-v1 has a caps URI, don't treat it as part of video-v1
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54634 Reviewed-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
-rw-r--r--src/connection.c5
-rw-r--r--src/media-factory.c5
2 files changed, 7 insertions, 3 deletions
diff --git a/src/connection.c b/src/connection.c
index 316af96ee..5ea0d1a67 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -2403,10 +2403,11 @@ gabble_connection_fill_in_caps (GabbleConnection *self,
if (voice_v1)
g_string_append (ext, " " BUNDLE_VOICE_V1);
- if (video_v1) {
+ if (video_v1)
g_string_append (ext, " " BUNDLE_VIDEO_V1);
+
+ if (gabble_presence_has_cap (presence, NS_GOOGLE_FEAT_CAMERA))
g_string_append (ext, " " BUNDLE_CAMERA_V1);
- }
wocky_node_set_attribute (node, "ext", ext->str);
g_string_free (ext, TRUE);
diff --git a/src/media-factory.c b/src/media-factory.c
index b52cfc6d4..493a8173c 100644
--- a/src/media-factory.c
+++ b/src/media-factory.c
@@ -1053,7 +1053,10 @@ gabble_media_factory_add_caps (GabbleCapabilitySet *caps,
/* video-v1 implies that we interop with Google Video Chat, i.e. we have
* gtalk-p2p and H.264 as well as video */
if (gtalk_p2p && h264)
- gabble_capability_set_add (caps, NS_GOOGLE_FEAT_VIDEO);
+ {
+ gabble_capability_set_add (caps, NS_GOOGLE_FEAT_VIDEO);
+ gabble_capability_set_add (caps, NS_GOOGLE_FEAT_CAMERA);
+ }
}
}