Skip to content
Snippets Groups Projects
Commit 276a9787 authored by fryshorts's avatar fryshorts
Browse files

Add const keyword to fixed lists in v4l2 plugin.

This should save a little bit of memory memory.
parent 25f71fd7
No related branches found
No related tags found
No related merge requests found
...@@ -110,7 +110,7 @@ static void unpack_tuple(int *a, int *b, int packed) ...@@ -110,7 +110,7 @@ static void unpack_tuple(int *a, int *b, int packed)
} }
/* fixed framesizes as fallback */ /* fixed framesizes as fallback */
static int fixed_framesizes[] = static const int fixed_framesizes[] =
{ {
/* 4:3 */ /* 4:3 */
160<<16 | 120, 160<<16 | 120,
...@@ -147,7 +147,7 @@ static int fixed_framesizes[] = ...@@ -147,7 +147,7 @@ static int fixed_framesizes[] =
}; };
/* fixed framerates as fallback */ /* fixed framerates as fallback */
static int fixed_framerates[] = static const int fixed_framerates[] =
{ {
1<<16 | 60, 1<<16 | 60,
1<<16 | 50, 1<<16 | 50,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment