From 276a97877b0e1ef44b0c69201589a4e80c583eab Mon Sep 17 00:00:00 2001 From: fryshorts Date: Sat, 26 Jul 2014 18:57:26 +0200 Subject: [PATCH] Add const keyword to fixed lists in v4l2 plugin. This should save a little bit of memory memory. --- plugins/linux-v4l2/v4l2-input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/linux-v4l2/v4l2-input.c b/plugins/linux-v4l2/v4l2-input.c index 12fc556f3..0d9fdd17a 100644 --- a/plugins/linux-v4l2/v4l2-input.c +++ b/plugins/linux-v4l2/v4l2-input.c @@ -110,7 +110,7 @@ static void unpack_tuple(int *a, int *b, int packed) } /* fixed framesizes as fallback */ -static int fixed_framesizes[] = +static const int fixed_framesizes[] = { /* 4:3 */ 160<<16 | 120, @@ -147,7 +147,7 @@ static int fixed_framesizes[] = }; /* fixed framerates as fallback */ -static int fixed_framerates[] = +static const int fixed_framerates[] = { 1<<16 | 60, 1<<16 | 50,