[cheese/capsrework] Don't check if format really changes in prefs-dialog



commit 7ea8bff656819b6e0e75dac4c2d8976d5ef436ff
Author: Filippo Argiolas <filippo argiolas gmail com>
Date:   Mon Dec 21 08:59:27 2009 +0100

    Don't check if format really changes in prefs-dialog
    
    No need to check if new_format is really different from the current one
    since cheese_camera_set_video_format already does nothing if the format
    is unchanged.

 src/cheese-prefs-dialog.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/cheese-prefs-dialog.c b/src/cheese-prefs-dialog.c
index 4d6448b..aaff545 100644
--- a/src/cheese-prefs-dialog.c
+++ b/src/cheese-prefs-dialog.c
@@ -80,16 +80,12 @@ static void
 cheese_prefs_dialog_on_resolution_changed (CheesePrefsWidget *widget, gpointer user_data)
 {
   CheeseCamera      *camera;
-  CheeseVideoFormat *current_format;
   CheeseVideoFormat *new_format;
 
   g_object_get (widget, "camera", &camera, NULL);
 
-  current_format = cheese_camera_get_current_video_format (camera);
-  new_format     = cheese_prefs_resolution_combo_get_selected_format (CHEESE_PREFS_RESOLUTION_COMBO (widget));
-
-  if (new_format != current_format)
-    cheese_camera_set_video_format (camera, new_format);
+  new_format = cheese_prefs_resolution_combo_get_selected_format (CHEESE_PREFS_RESOLUTION_COMBO (widget));
+  cheese_camera_set_video_format (camera, new_format);
 }
 
 static void



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