Browse Source

Add const keyword to fixed lists in v4l2 plugin.

This should save a little bit of memory memory.
fryshorts 11 years ago
parent
commit
276a97877b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      plugins/linux-v4l2/v4l2-input.c

+ 2 - 2
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,