[cheese] check if device uri is null, before setting up the camera with it



commit 67f0fc2d3e2842b9f7dae19edac3fddbd52f20c0
Author: daniel g. siegel <dgsiegel gnome org>
Date:   Mon Aug 9 01:33:15 2010 +0200

    check if device uri is null, before setting up the camera with it

 src/cheese-window.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/cheese-window.vala b/src/cheese-window.vala
index 66f499b..033041c 100644
--- a/src/cheese-window.vala
+++ b/src/cheese-window.vala
@@ -1032,10 +1032,10 @@ public class Cheese.MainWindow : Gtk.Window
     toggle_camera_actions_sensitivities (false);
   }
 
-  public void setup_camera (string uri)
+  public void setup_camera (string ? uri)
   {
     string device;
-    if (uri.length > 0)
+    if (uri != null && uri.length > 0)
       device = uri;
     else
       device = conf.gconf_prop_camera;



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