diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-05-13 11:54:49 +0100 |
---|---|---|
committer | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-05-13 12:14:41 +0100 |
commit | 8e3f9e7514cc2284496e0f1db23180e20be4bea0 (patch) | |
tree | 61e5f8e9749a16747c07dd74f8c6e7b35eed41e3 /libempathy | |
parent | 7c8875356d589a24e9c6c46b4baa2da93c326c67 (diff) | |
download | empathy-8e3f9e7514cc2284496e0f1db23180e20be4bea0.tar.gz |
Only follow available cameras if the contact can do Video calls
Diffstat (limited to 'libempathy')
-rw-r--r-- | libempathy/empathy-contact.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c index 955ee885f..42faad483 100644 --- a/libempathy/empathy-contact.c +++ b/libempathy/empathy-contact.c @@ -40,7 +40,6 @@ #endif #include "empathy-contact.h" -#include "empathy-camera-monitor.h" #include "empathy-utils.h" #include "empathy-enum-types.h" #include "empathy-marshal.h" @@ -1224,18 +1223,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; |