mirror of
https://github.com/mpv-player/mpv
synced 2025-01-09 08:29:36 +00:00
stream_opts arrays should be const
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25270 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
b8a403f124
commit
dd2fcb4370
@ -47,7 +47,7 @@ static struct cdda_params {
|
||||
};
|
||||
|
||||
#define ST_OFF(f) M_ST_OFF(struct cdda_params,f)
|
||||
m_option_t cdda_params_fields[] = {
|
||||
static const m_option_t cdda_params_fields[] = {
|
||||
{ "speed", ST_OFF(speed), CONF_TYPE_INT, M_OPT_RANGE,1,100, NULL },
|
||||
{ "paranoia", ST_OFF(paranoia_mode), CONF_TYPE_INT,M_OPT_RANGE, 0, 2, NULL },
|
||||
{ "generic-dev", ST_OFF(generic_dev), CONF_TYPE_STRING, 0, 0, 0, NULL },
|
||||
|
@ -43,7 +43,7 @@ static struct stream_priv_s {
|
||||
|
||||
#define ST_OFF(f) M_ST_OFF(struct stream_priv_s,f)
|
||||
/// URL definition
|
||||
static m_option_t stream_opts_fields[] = {
|
||||
static const m_option_t stream_opts_fields[] = {
|
||||
{ "string", ST_OFF(filename), CONF_TYPE_STRING, 0, 0 ,0, NULL},
|
||||
{ NULL, NULL, 0, 0, 0, 0, NULL }
|
||||
};
|
||||
|
@ -75,7 +75,7 @@ stream_defaults =
|
||||
#define ST_OFF(f) M_ST_OFF(struct stream_priv_s, f)
|
||||
|
||||
/// URL definition
|
||||
static m_option_t stream_params[] = {
|
||||
static const m_option_t stream_params[] = {
|
||||
{"prog", ST_OFF(prog), CONF_TYPE_STRING, 0, 0 ,0, NULL},
|
||||
{"card", ST_OFF(card), CONF_TYPE_INT, M_OPT_RANGE, 1, 4, NULL},
|
||||
{"type", ST_OFF(type), CONF_TYPE_STRING, 0, 0 ,0, NULL},
|
||||
|
@ -145,7 +145,7 @@ static struct stream_priv_s {
|
||||
|
||||
#define ST_OFF(f) M_ST_OFF(struct stream_priv_s,f)
|
||||
/// URL definition
|
||||
static m_option_t stream_opts_fields[] = {
|
||||
static const m_option_t stream_opts_fields[] = {
|
||||
{ "hostname", ST_OFF(title), CONF_TYPE_INT, M_OPT_MIN, 1, 0, NULL },
|
||||
{ NULL, NULL, 0, 0, 0, 0, NULL }
|
||||
};
|
||||
|
@ -35,7 +35,7 @@ static struct stream_priv_s {
|
||||
|
||||
#define ST_OFF(f) M_ST_OFF(struct stream_priv_s,f)
|
||||
/// URL definition
|
||||
static m_option_t stream_opts_fields[] = {
|
||||
static const m_option_t stream_opts_fields[] = {
|
||||
{"filename", ST_OFF(device), CONF_TYPE_STRING, 0, 0, 0, NULL },
|
||||
{"hostname", ST_OFF(track), CONF_TYPE_INT, 0, 0, 0, NULL},
|
||||
{ NULL, NULL, 0, 0, 0, 0, NULL }
|
||||
|
@ -22,7 +22,7 @@ static struct stream_priv_s {
|
||||
|
||||
#define ST_OFF(f) M_ST_OFF(struct stream_priv_s,f)
|
||||
/// URL definition
|
||||
static m_option_t stream_opts_fields[] = {
|
||||
static const m_option_t stream_opts_fields[] = {
|
||||
{"string", ST_OFF(filename), CONF_TYPE_STRING, 0, 0 ,0, NULL},
|
||||
{"filename", ST_OFF(filename2), CONF_TYPE_STRING, 0, 0 ,0, NULL},
|
||||
{ NULL, NULL, 0, 0, 0, 0, NULL }
|
||||
|
@ -51,7 +51,7 @@ static struct stream_priv_s {
|
||||
|
||||
#define ST_OFF(f) M_ST_OFF(struct stream_priv_s,f)
|
||||
/// URL definition
|
||||
static m_option_t stream_opts_fields[] = {
|
||||
static const m_option_t stream_opts_fields[] = {
|
||||
{"username", ST_OFF(user), CONF_TYPE_STRING, 0, 0 ,0, NULL},
|
||||
{"password", ST_OFF(pass), CONF_TYPE_STRING, 0, 0 ,0, NULL},
|
||||
{"hostname", ST_OFF(host), CONF_TYPE_STRING, 0, 0 ,0, NULL},
|
||||
|
@ -76,7 +76,7 @@ static struct stream_priv_s {
|
||||
|
||||
#define ST_OFF(f) M_ST_OFF(struct stream_priv_s,f)
|
||||
/// URL definition
|
||||
static m_option_t stream_opts_fields[] = {
|
||||
static const m_option_t stream_opts_fields[] = {
|
||||
{"hostname", ST_OFF(host), CONF_TYPE_STRING, 0, 0 ,0, NULL},
|
||||
{"port", ST_OFF(port), CONF_TYPE_INT, M_OPT_MIN, 1 ,0, NULL},
|
||||
{"filename", ST_OFF(url), CONF_TYPE_STRING, 0, 0 ,0, NULL},
|
||||
|
@ -141,7 +141,7 @@ typedef struct radio_driver_s {
|
||||
} radio_driver_t;
|
||||
|
||||
#define ST_OFF(f) M_ST_OFF(radio_param_t,f)
|
||||
static m_option_t stream_opts_fields[] = {
|
||||
static const m_option_t stream_opts_fields[] = {
|
||||
{"hostname", ST_OFF(freq_channel), CONF_TYPE_FLOAT, 0, 0 ,0, NULL},
|
||||
{"filename", ST_OFF(capture), CONF_TYPE_STRING, 0, 0 ,0, NULL},
|
||||
{ NULL, NULL, 0, 0, 0, 0, NULL }
|
||||
|
@ -16,7 +16,7 @@ static struct stream_priv_s {
|
||||
|
||||
#define ST_OFF(f) M_ST_OFF(struct stream_priv_s,f)
|
||||
// URL definition
|
||||
static m_option_t stream_opts_fields[] = {
|
||||
static const m_option_t stream_opts_fields[] = {
|
||||
{ NULL, NULL, 0, 0, 0, 0, NULL }
|
||||
};
|
||||
|
||||
|
@ -81,7 +81,7 @@ tv_param_t stream_tv_defaults = {
|
||||
};
|
||||
|
||||
#define ST_OFF(f) M_ST_OFF(tv_param_t,f)
|
||||
static m_option_t stream_opts_fields[] = {
|
||||
static const m_option_t stream_opts_fields[] = {
|
||||
{"hostname", ST_OFF(channel), CONF_TYPE_STRING, 0, 0 ,0, NULL},
|
||||
{"filename", ST_OFF(input), CONF_TYPE_INT, 0, 0 ,0, NULL},
|
||||
{ NULL, NULL, 0, 0, 0, 0, NULL }
|
||||
|
@ -43,7 +43,7 @@ static struct stream_priv_s {
|
||||
|
||||
#define ST_OFF(f) M_ST_OFF(struct stream_priv_s,f)
|
||||
/// URL definition
|
||||
static m_option_t stream_opts_fields[] = {
|
||||
static const m_option_t stream_opts_fields[] = {
|
||||
{ "track", ST_OFF(track), CONF_TYPE_INT, M_OPT_MIN, 1, 0, NULL },
|
||||
{ "device", ST_OFF(device), CONF_TYPE_STRING, 0, 0 ,0, NULL},
|
||||
/// For url parsing
|
||||
|
@ -72,7 +72,7 @@ static struct stream_priv_s {
|
||||
|
||||
#define ST_OFF(f) M_ST_OFF(struct stream_priv_s,f)
|
||||
/// URL definition
|
||||
static m_option_t stream_opts_fields[] = {
|
||||
static const m_option_t stream_opts_fields[] = {
|
||||
{"hostname", ST_OFF(host), CONF_TYPE_STRING, 0, 0 ,0, NULL},
|
||||
{"filename", ST_OFF(fsid), CONF_TYPE_STRING, 0, 0 ,0, NULL},
|
||||
{ NULL, NULL, 0, 0, 0, 0, NULL }
|
||||
|
Loading…
Reference in New Issue
Block a user