summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2002-04-06 15:14:40 +0000
committerBenjamin Otte <otte@gnome.org>2002-04-06 15:14:40 +0000
commitf921acd1a638b5e2027af8fa3921948b8214ef5e (patch)
treecf32f78cefd3e3f7490cc246e9a9b83d00556586 /sys
parent2cb859e0c95773cd78473f3d9b279985f64074ea (diff)
downloadgst-plugins-bad-f921acd1a638b5e2027af8fa3921948b8214ef5e.tar.gz
gst-plugins-bad-f921acd1a638b5e2027af8fa3921948b8214ef5e.tar.bz2
gst-plugins-bad-f921acd1a638b5e2027af8fa3921948b8214ef5e.zip
fixed rest of warning for gcc 3 in /sys
Original commit message from CVS: fixed rest of warning for gcc 3 in /sys
Diffstat (limited to 'sys')
-rw-r--r--sys/qcam/exposure.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/sys/qcam/exposure.c b/sys/qcam/exposure.c
index 139aebf3..66574f32 100644
--- a/sys/qcam/exposure.c
+++ b/sys/qcam/exposure.c
@@ -214,16 +214,8 @@ qcip_autoexposure(struct qcam *q, scanbuf *scan)
case AE_STD_AVG:
luminance_avg = qcip_pixel_average(q, scan);
lum_std = qcip_luminance_std(q, scan, luminance_avg);
- break;
- case AE_ALL_AVG:
- default:
- luminance_avg = qcip_pixel_average(q, scan);
- break;
- }
- /* ==>> Contrast adjustment <<== */
-
- if (ae_mode == AE_STD_AVG) {
+ /* ==>> Contrast adjustment <<== */
/* set target if it has not been explicitly set */
if (luminance_std_target == -1) {
@@ -244,6 +236,12 @@ qcip_autoexposure(struct qcam *q, scanbuf *scan)
fprintf(stderr, "Luminance std/target/tolerance: %d/%d/%d\n",
lum_std, luminance_std_target, luminance_std_tolerance );
#endif
+
+ break;
+ case AE_ALL_AVG:
+ default:
+ luminance_avg = qcip_pixel_average(q, scan);
+ break;
}
/* ==>> Brightness adjustment <<== */