diff options
author | hans@rhel5-devel.localdomain <hans@rhel5-devel.localdomain> | 2009-04-13 21:56:28 +0200 |
---|---|---|
committer | hans@rhel5-devel.localdomain <hans@rhel5-devel.localdomain> | 2009-04-13 21:56:28 +0200 |
commit | b1352a9018aeac6722d2e8d606f9c0ea140e0abd (patch) | |
tree | 5a901f5a4c5240e390e6d1726be834cdfce64095 /v4l2-apps/libv4l | |
parent | fa59c01eadd849ed2e5b0cf1406347bf632c80ed (diff) | |
download | mediapointer-dvb-s2-b1352a9018aeac6722d2e8d606f9c0ea140e0abd.tar.gz mediapointer-dvb-s2-b1352a9018aeac6722d2e8d606f9c0ea140e0abd.tar.bz2 |
libv4l: Fix video processing parameter updating
From: Hans de Goede <hdegoede@redhat.com>
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 <hdegoede@redhat.com>
Diffstat (limited to 'v4l2-apps/libv4l')
-rw-r--r-- | v4l2-apps/libv4l/libv4lconvert/processing/libv4lprocessing.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |