csputils: correct constness of csp name constants

This commit is contained in:
wm4 2014-02-03 21:58:51 +01:00
parent 44bfe3b14a
commit d03111c5be
2 changed files with 6 additions and 6 deletions

View File

@ -35,7 +35,7 @@
#include "csputils.h"
char * const mp_csp_names[MP_CSP_COUNT] = {
const char *const mp_csp_names[MP_CSP_COUNT] = {
"Autoselect",
"BT.601 (SD)",
"BT.709 (HD)",
@ -45,13 +45,13 @@ char * const mp_csp_names[MP_CSP_COUNT] = {
"YCgCo",
};
char * const mp_csp_levels_names[MP_CSP_LEVELS_COUNT] = {
const char *const mp_csp_levels_names[MP_CSP_LEVELS_COUNT] = {
"Autoselect",
"TV",
"PC",
};
char * const mp_csp_equalizer_names[MP_CSP_EQ_COUNT] = {
const char *const mp_csp_equalizer_names[MP_CSP_EQ_COUNT] = {
"brightness",
"contrast",
"hue",

View File

@ -44,7 +44,7 @@ enum mp_csp {
};
// Any enum mp_csp value is a valid index (except MP_CSP_COUNT)
extern char * const mp_csp_names[MP_CSP_COUNT];
extern const char *const mp_csp_names[MP_CSP_COUNT];
enum mp_csp_levels {
MP_CSP_LEVELS_AUTO,
@ -54,7 +54,7 @@ enum mp_csp_levels {
};
// Any enum mp_csp_levels value is a valid index (except MP_CSP_LEVELS_COUNT)
extern char * const mp_csp_levels_names[MP_CSP_LEVELS_COUNT];
extern const char *const mp_csp_levels_names[MP_CSP_LEVELS_COUNT];
struct mp_csp_details {
enum mp_csp format;
@ -111,7 +111,7 @@ enum mp_csp_equalizer_param {
#define MP_CSP_EQ_CAPS_GAMMA (1 << MP_CSP_EQ_GAMMA)
extern char * const mp_csp_equalizer_names[MP_CSP_EQ_COUNT];
extern const char *const mp_csp_equalizer_names[MP_CSP_EQ_COUNT];
// Default initialization with 0 is enough, except for the capabilities field
struct mp_csp_equalizer {