aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 *