aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-05-11 17:47:55 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-07-12 16:55:29 +0800
commitc1465c5133df557ff5e0f5f3e7463e0fdc0eae1e (patch)
tree1765196fc68c819696baf46ea7e3425c9d8a7613 /libempathy
parent5c5890caba5e3ddc4298f138f3bb802993b21b4d (diff)
downloadgsoc2013-empathy-c1465c5133df557ff5e0f5f3e7463e0fdc0eae1e.tar
gsoc2013-empathy-c1465c5133df557ff5e0f5f3e7463e0fdc0eae1e.tar.gz
gsoc2013-empathy-c1465c5133df557ff5e0f5f3e7463e0fdc0eae1e.tar.bz2
gsoc2013-empathy-c1465c5133df557ff5e0f5f3e7463e0fdc0eae1e.tar.lz
gsoc2013-empathy-c1465c5133df557ff5e0f5f3e7463e0fdc0eae1e.tar.xz
gsoc2013-empathy-c1465c5133df557ff5e0f5f3e7463e0fdc0eae1e.tar.zst
gsoc2013-empathy-c1465c5133df557ff5e0f5f3e7463e0fdc0eae1e.zip
Don't disable video calls when built without udev
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-camera-monitor.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libempathy/empathy-camera-monitor.c b/libempathy/empathy-camera-monitor.c
index 702838127..e86bcb8fb 100644
--- a/libempathy/empathy-camera-monitor.c
+++ b/libempathy/empathy-camera-monitor.c
@@ -165,6 +165,11 @@ empathy_camera_monitor_init (EmpathyCameraMonitor *self)
G_CALLBACK (on_camera_added), self);
g_signal_connect (self->priv->cheese_monitor, "removed",
G_CALLBACK (on_camera_removed), self);
+
+#ifndef HAVE_UDEV
+ /* No udev, assume there are cameras present */
+ self->priv->num_cameras = 1;
+#endif
}
EmpathyCameraMonitor *