From b1352a9018aeac6722d2e8d606f9c0ea140e0abd Mon Sep 17 00:00:00 2001 From: "hans@rhel5-devel.localdomain" Date: Mon, 13 Apr 2009 21:56:28 +0200 Subject: libv4l: Fix video processing parameter updating From: Hans de Goede Unless the source format of a conversion was a format supported to do processing on we would update the processing parameters each frame instead of every 10 frames Priority: normal Signed-off-by: Hans de Goede --- v4l2-apps/libv4l/libv4lconvert/processing/libv4lprocessing.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'v4l2-apps/libv4l/libv4lconvert/processing') diff --git a/v4l2-apps/libv4l/libv4lconvert/processing/libv4lprocessing.c b/v4l2-apps/libv4l/libv4lconvert/processing/libv4lprocessing.c index d61c29275..f986da02d 100644 --- a/v4l2-apps/libv4l/libv4lconvert/processing/libv4lprocessing.c +++ b/v4l2-apps/libv4l/libv4lconvert/processing/libv4lprocessing.c @@ -115,6 +115,9 @@ int v4lprocessing_pre_processing(struct v4lprocessing_data *data) v4lcontrol_get_ctrl(data->control, V4LCONTROL_WHITEBALANCE) || v4lcontrol_get_ctrl(data->control, V4LCONTROL_NORMALIZE); + if (!data->do_process) + data->process = V4L2PROCESSING_PROCESS_NONE; + return data->do_process; } @@ -128,7 +131,6 @@ void v4lprocessing_processing(struct v4lprocessing_data *data, process = v4lprocessing_get_process(data, fmt->fmt.pix.pixelformat); if (process == V4L2PROCESSING_PROCESS_NONE) { - data->process = process; return; } -- cgit v1.2.3