diff options
author | hans@rhel5-devel.localdomain <hans@rhel5-devel.localdomain> | 2009-06-24 14:07:03 +0200 |
---|---|---|
committer | hans@rhel5-devel.localdomain <hans@rhel5-devel.localdomain> | 2009-06-24 14:07:03 +0200 |
commit | e9e321113789949491c97d93eae4f5e9bacc86f1 (patch) | |
tree | e599f6eca491a71eddf117bd153b8d6324f326e1 /v4l2-apps/libv4l/libv4lconvert/processing/libv4lprocessing.c | |
parent | 408926f2c84bd8478d27ef988a2db4a7bb7e8f0d (diff) | |
download | mediapointer-dvb-s2-e9e321113789949491c97d93eae4f5e9bacc86f1.tar.gz mediapointer-dvb-s2-e9e321113789949491c97d93eae4f5e9bacc86f1.tar.bz2 |
libv4l: whitebalance fix divide by 0 and avoid abrupt changes
From: Hans de Goede <hdegoede@redhat.com>
libv4l: whitebalance fix divide by 0 and avoid abrupt changes
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'v4l2-apps/libv4l/libv4lconvert/processing/libv4lprocessing.c')
-rw-r--r-- | v4l2-apps/libv4l/libv4lconvert/processing/libv4lprocessing.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/v4l2-apps/libv4l/libv4lconvert/processing/libv4lprocessing.c b/v4l2-apps/libv4l/libv4lconvert/processing/libv4lprocessing.c index cbbcca73c..af0056e94 100644 --- a/v4l2-apps/libv4l/libv4lconvert/processing/libv4lprocessing.c +++ b/v4l2-apps/libv4l/libv4lconvert/processing/libv4lprocessing.c @@ -62,6 +62,8 @@ int v4lprocessing_pre_processing(struct v4lprocessing_data *data) data->do_process = 1; } + data->controls_changed |= v4lcontrol_controls_changed(data->control); + return data->do_process; } @@ -167,9 +169,10 @@ void v4lprocessing_processing(struct v4lprocessing_data *data, return; /* Non supported pix format */ } - if (v4lcontrol_controls_changed(data->control) || + if (data->controls_changed || data->lookup_table_update_counter == V4L2PROCESSING_UPDATE_RATE) { v4lprocessing_update_lookup_tables(data, buf, fmt); + data->controls_changed = 0; data->lookup_table_update_counter = 0; } else data->lookup_table_update_counter++; |