[cheese] Removed a few unnecessary camera start/stops during startup



commit 054b100cf4931c67ae1e8633c1ded5801da7f64c
Author: Yuvi Panda <yuvipanda gmail com>
Date:   Mon Jul 26 18:42:09 2010 +0530

    Removed a few unnecessary camera start/stops during startup

 src/cheese-window.vala |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/cheese-window.vala b/src/cheese-window.vala
index ce0acee..5a45036 100644
--- a/src/cheese-window.vala
+++ b/src/cheese-window.vala
@@ -742,7 +742,7 @@ public class Cheese.MainWindow : Gtk.Window
         grid.row_spacing    = 20;
       }
 
-      camera.stop ();
+
       for (int i = 0; i < effects_manager.effects.size - 1; i++)
       {
         Effect            effect  = effects_manager.effects[i];
@@ -784,7 +784,7 @@ public class Cheese.MainWindow : Gtk.Window
         effects_grids[i / EFFECTS_PER_PAGE].add ((Clutter.Actor)box);
         camera.connect_effect_texture (effect, texture);
       }
-      camera.play ();
+
       setup_effects_page_switch_sensitivity ();
       current_effects_grid = effects_grids[0];
     }
@@ -937,10 +937,11 @@ public class Cheese.MainWindow : Gtk.Window
       }
       return;
     }
-    camera.play ();
+   
 
     set_mode (MediaMode.PHOTO);
     setup_effects_selector ();
     preferences_dialog = new Cheese.PreferencesDialog (camera, conf);
+    camera.play ();
   }
 }



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