[empathy] Don't disable video calls when built without udev



commit c1465c5133df557ff5e0f5f3e7463e0fdc0eae1e
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date:   Wed May 11 10:47:55 2011 +0100

    Don't disable video calls when built without udev

 libempathy/empathy-camera-monitor.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-camera-monitor.c b/libempathy/empathy-camera-monitor.c
index 7028381..e86bcb8 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 *



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]