aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-05-13 18:54:49 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-07-12 17:11:14 +0800
commit4305ae9d96e4a6b3fb749b64d6d0c4b0045ab1fc (patch)
tree47ee7ffc36635cba9905d69a6c6575998b28153b /libempathy
parentc463ca2f1aa7ba43248b8f07879c4268cb536670 (diff)
downloadgsoc2013-empathy-4305ae9d96e4a6b3fb749b64d6d0c4b0045ab1fc.tar
gsoc2013-empathy-4305ae9d96e4a6b3fb749b64d6d0c4b0045ab1fc.tar.gz
gsoc2013-empathy-4305ae9d96e4a6b3fb749b64d6d0c4b0045ab1fc.tar.bz2
gsoc2013-empathy-4305ae9d96e4a6b3fb749b64d6d0c4b0045ab1fc.tar.lz
gsoc2013-empathy-4305ae9d96e4a6b3fb749b64d6d0c4b0045ab1fc.tar.xz
gsoc2013-empathy-4305ae9d96e4a6b3fb749b64d6d0c4b0045ab1fc.tar.zst
gsoc2013-empathy-4305ae9d96e4a6b3fb749b64d6d0c4b0045ab1fc.zip
Only follow available cameras if the contact can do Video calls
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-contact.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index a4b35dc06..cdca6dc75 100644
--- a/libempathy/empathy-contact.c
+++ b/libempathy/empathy-contact.c
@@ -1302,18 +1302,8 @@ empathy_contact_can_do_action (EmpathyContact *self,
sensitivity = empathy_contact_can_voip_audio (self);
break;
case EMPATHY_ACTION_VIDEO_CALL:
- {
- EmpathyCameraMonitor *monitor;
-
- monitor = empathy_camera_monitor_dup_singleton ();
-
- sensitivity = empathy_contact_can_voip_video (self);
- sensitivity = sensitivity &&
- empathy_camera_monitor_get_available (monitor);
-
- g_object_unref (monitor);
- break;
- }
+ sensitivity = empathy_contact_can_voip_video (self);
+ break;
case EMPATHY_ACTION_VIEW_LOGS:
sensitivity = contact_has_log (self);
break;