[cheese] Don't check if format really changes in prefs-dialog
- From: Filippo Argiolas <fargiolas src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [cheese] Don't check if format really changes in prefs-dialog
- Date: Wed, 23 Dec 2009 08:09:58 +0000 (UTC)
commit 013f4df67054e9c79d6fc226f497a1bcc2aaf41b
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]