mirror of https://github.com/mpv-player/mpv
stream_opts should be const
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25719 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
62b89eb60a
commit
6f616c316d
|
@ -65,7 +65,7 @@ static const m_option_t cdda_params_fields[] = {
|
|||
{ "filename", ST_OFF(device), CONF_TYPE_STRING, 0, 0, 0, NULL },
|
||||
{NULL, NULL, 0, 0, 0, 0, NULL}
|
||||
};
|
||||
static struct m_struct_st stream_opts = {
|
||||
static const struct m_struct_st stream_opts = {
|
||||
"cdda",
|
||||
sizeof(struct cdda_params),
|
||||
&cdda_dflts,
|
||||
|
|
|
@ -47,7 +47,7 @@ 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 }
|
||||
};
|
||||
static struct m_struct_st stream_opts = {
|
||||
static const struct m_struct_st stream_opts = {
|
||||
"cue",
|
||||
sizeof(struct stream_priv_s),
|
||||
&stream_priv_dflts,
|
||||
|
|
|
@ -89,7 +89,7 @@ static const m_option_t stream_params[] = {
|
|||
{NULL, NULL, 0, 0, 0, 0, NULL}
|
||||
};
|
||||
|
||||
static struct m_struct_st stream_opts = {
|
||||
static const struct m_struct_st stream_opts = {
|
||||
"dvbin",
|
||||
sizeof(struct stream_priv_s),
|
||||
&stream_defaults,
|
||||
|
|
|
@ -149,7 +149,7 @@ 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 }
|
||||
};
|
||||
static struct m_struct_st stream_opts = {
|
||||
static const struct m_struct_st stream_opts = {
|
||||
"dvd",
|
||||
sizeof(struct stream_priv_s),
|
||||
&stream_priv_dflts,
|
||||
|
|
|
@ -51,7 +51,7 @@ static const m_option_t stream_opts_fields[] = {
|
|||
{"hostname", ST_OFF(track), CONF_TYPE_INT, 0, 0, 0, NULL},
|
||||
{ NULL, NULL, 0, 0, 0, 0, NULL }
|
||||
};
|
||||
static struct m_struct_st stream_opts = {
|
||||
static const struct m_struct_st stream_opts = {
|
||||
"dvd",
|
||||
sizeof(struct stream_priv_s),
|
||||
&stream_priv_dflts,
|
||||
|
|
|
@ -27,7 +27,7 @@ static const m_option_t stream_opts_fields[] = {
|
|||
{"filename", ST_OFF(filename2), CONF_TYPE_STRING, 0, 0 ,0, NULL},
|
||||
{ NULL, NULL, 0, 0, 0, 0, NULL }
|
||||
};
|
||||
static struct m_struct_st stream_opts = {
|
||||
static const struct m_struct_st stream_opts = {
|
||||
"file",
|
||||
sizeof(struct stream_priv_s),
|
||||
&stream_priv_dflts,
|
||||
|
|
|
@ -59,7 +59,7 @@ static const m_option_t stream_opts_fields[] = {
|
|||
{"filename", ST_OFF(filename), CONF_TYPE_STRING, 0, 0 ,0, NULL},
|
||||
{ NULL, NULL, 0, 0, 0, 0, NULL }
|
||||
};
|
||||
static struct m_struct_st stream_opts = {
|
||||
static const struct m_struct_st stream_opts = {
|
||||
"ftp",
|
||||
sizeof(struct stream_priv_s),
|
||||
&stream_priv_dflts,
|
||||
|
|
|
@ -82,7 +82,7 @@ static const m_option_t stream_opts_fields[] = {
|
|||
{"filename", ST_OFF(url), CONF_TYPE_STRING, 0, 0 ,0, NULL},
|
||||
{ NULL, NULL, 0, 0, 0, 0, NULL }
|
||||
};
|
||||
static struct m_struct_st stream_opts = {
|
||||
static const struct m_struct_st stream_opts = {
|
||||
"netstream",
|
||||
sizeof(struct stream_priv_s),
|
||||
&stream_priv_dflts,
|
||||
|
|
|
@ -147,7 +147,7 @@ static const m_option_t stream_opts_fields[] = {
|
|||
{ NULL, NULL, 0, 0, 0, 0, NULL }
|
||||
};
|
||||
|
||||
static struct m_struct_st stream_opts = {
|
||||
static const struct m_struct_st stream_opts = {
|
||||
"radio",
|
||||
sizeof(radio_param_t),
|
||||
&stream_radio_defaults,
|
||||
|
|
|
@ -20,7 +20,7 @@ static const m_option_t stream_opts_fields[] = {
|
|||
{ NULL, NULL, 0, 0, 0, 0, NULL }
|
||||
};
|
||||
|
||||
static struct m_struct_st stream_opts = {
|
||||
static const struct m_struct_st stream_opts = {
|
||||
"smb",
|
||||
sizeof(struct stream_priv_s),
|
||||
&stream_priv_dflts,
|
||||
|
|
|
@ -87,7 +87,7 @@ static const m_option_t stream_opts_fields[] = {
|
|||
{ NULL, NULL, 0, 0, 0, 0, NULL }
|
||||
};
|
||||
|
||||
static struct m_struct_st stream_opts = {
|
||||
static const struct m_struct_st stream_opts = {
|
||||
"tv",
|
||||
sizeof(tv_param_t),
|
||||
&stream_tv_defaults,
|
||||
|
|
|
@ -51,7 +51,7 @@ static const m_option_t stream_opts_fields[] = {
|
|||
{ "filename", ST_OFF(device), CONF_TYPE_STRING, 0, 0 ,0, NULL},
|
||||
{ NULL, NULL, 0, 0, 0, 0, NULL }
|
||||
};
|
||||
static struct m_struct_st stream_opts = {
|
||||
static const struct m_struct_st stream_opts = {
|
||||
"vcd",
|
||||
sizeof(struct stream_priv_s),
|
||||
&stream_priv_dflts,
|
||||
|
|
|
@ -78,7 +78,7 @@ static const m_option_t stream_opts_fields[] = {
|
|||
{ NULL, NULL, 0, 0, 0, 0, NULL }
|
||||
};
|
||||
|
||||
static struct m_struct_st stream_opts = {
|
||||
static const struct m_struct_st stream_opts = {
|
||||
"vstream",
|
||||
sizeof(struct stream_priv_s),
|
||||
&stream_priv_dflts,
|
||||
|
|
Loading…
Reference in New Issue