summaryrefslogtreecommitdiff
path: root/v4l2-apps/libv4l
diff options
context:
space:
mode:
Diffstat (limited to 'v4l2-apps/libv4l')
-rw-r--r--v4l2-apps/libv4l/libv4lconvert/control/libv4lcontrol.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/v4l2-apps/libv4l/libv4lconvert/control/libv4lcontrol.c b/v4l2-apps/libv4l/libv4lconvert/control/libv4lcontrol.c
index ec3750408..da2fbcdce 100644
--- a/v4l2-apps/libv4l/libv4lconvert/control/libv4lcontrol.c
+++ b/v4l2-apps/libv4l/libv4lconvert/control/libv4lcontrol.c
@@ -487,6 +487,9 @@ int v4lcontrol_controls_changed(struct v4lcontrol_data *data)
{
int res;
+ if (!data->controls)
+ return 0;
+
res = memcmp(data->shm_values, data->old_values,
V4LCONTROL_COUNT * sizeof(unsigned int));