0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

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:
reimar 2008-01-13 12:34:42 +00:00
parent 62b89eb60a
commit 6f616c316d
13 changed files with 13 additions and 13 deletions

View File

@ -65,7 +65,7 @@ static const m_option_t cdda_params_fields[] = {
{ "filename", ST_OFF(device), CONF_TYPE_STRING, 0, 0, 0, NULL }, { "filename", ST_OFF(device), CONF_TYPE_STRING, 0, 0, 0, NULL },
{NULL, NULL, 0, 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", "cdda",
sizeof(struct cdda_params), sizeof(struct cdda_params),
&cdda_dflts, &cdda_dflts,

View File

@ -47,7 +47,7 @@ static const m_option_t stream_opts_fields[] = {
{ "string", ST_OFF(filename), CONF_TYPE_STRING, 0, 0 ,0, NULL}, { "string", ST_OFF(filename), CONF_TYPE_STRING, 0, 0 ,0, NULL},
{ NULL, NULL, 0, 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", "cue",
sizeof(struct stream_priv_s), sizeof(struct stream_priv_s),
&stream_priv_dflts, &stream_priv_dflts,

View File

@ -89,7 +89,7 @@ static const m_option_t stream_params[] = {
{NULL, NULL, 0, 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 = {
"dvbin", "dvbin",
sizeof(struct stream_priv_s), sizeof(struct stream_priv_s),
&stream_defaults, &stream_defaults,

View File

@ -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 }, { "hostname", ST_OFF(title), CONF_TYPE_INT, M_OPT_MIN, 1, 0, NULL },
{ NULL, NULL, 0, 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", "dvd",
sizeof(struct stream_priv_s), sizeof(struct stream_priv_s),
&stream_priv_dflts, &stream_priv_dflts,

View File

@ -51,7 +51,7 @@ static const m_option_t stream_opts_fields[] = {
{"hostname", ST_OFF(track), CONF_TYPE_INT, 0, 0, 0, NULL}, {"hostname", ST_OFF(track), CONF_TYPE_INT, 0, 0, 0, NULL},
{ NULL, NULL, 0, 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", "dvd",
sizeof(struct stream_priv_s), sizeof(struct stream_priv_s),
&stream_priv_dflts, &stream_priv_dflts,

View File

@ -27,7 +27,7 @@ static const m_option_t stream_opts_fields[] = {
{"filename", ST_OFF(filename2), 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 } { NULL, NULL, 0, 0, 0, 0, NULL }
}; };
static struct m_struct_st stream_opts = { static const struct m_struct_st stream_opts = {
"file", "file",
sizeof(struct stream_priv_s), sizeof(struct stream_priv_s),
&stream_priv_dflts, &stream_priv_dflts,

View File

@ -59,7 +59,7 @@ static const m_option_t stream_opts_fields[] = {
{"filename", ST_OFF(filename), CONF_TYPE_STRING, 0, 0 ,0, NULL}, {"filename", ST_OFF(filename), CONF_TYPE_STRING, 0, 0 ,0, NULL},
{ NULL, NULL, 0, 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", "ftp",
sizeof(struct stream_priv_s), sizeof(struct stream_priv_s),
&stream_priv_dflts, &stream_priv_dflts,

View File

@ -82,7 +82,7 @@ static const m_option_t stream_opts_fields[] = {
{"filename", ST_OFF(url), CONF_TYPE_STRING, 0, 0 ,0, NULL}, {"filename", ST_OFF(url), CONF_TYPE_STRING, 0, 0 ,0, NULL},
{ NULL, NULL, 0, 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", "netstream",
sizeof(struct stream_priv_s), sizeof(struct stream_priv_s),
&stream_priv_dflts, &stream_priv_dflts,

View File

@ -147,7 +147,7 @@ static const m_option_t stream_opts_fields[] = {
{ NULL, NULL, 0, 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 = {
"radio", "radio",
sizeof(radio_param_t), sizeof(radio_param_t),
&stream_radio_defaults, &stream_radio_defaults,

View File

@ -20,7 +20,7 @@ static const m_option_t stream_opts_fields[] = {
{ NULL, NULL, 0, 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 = {
"smb", "smb",
sizeof(struct stream_priv_s), sizeof(struct stream_priv_s),
&stream_priv_dflts, &stream_priv_dflts,

View File

@ -87,7 +87,7 @@ static const m_option_t stream_opts_fields[] = {
{ NULL, NULL, 0, 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 = {
"tv", "tv",
sizeof(tv_param_t), sizeof(tv_param_t),
&stream_tv_defaults, &stream_tv_defaults,

View File

@ -51,7 +51,7 @@ static const m_option_t stream_opts_fields[] = {
{ "filename", ST_OFF(device), CONF_TYPE_STRING, 0, 0 ,0, NULL}, { "filename", ST_OFF(device), CONF_TYPE_STRING, 0, 0 ,0, NULL},
{ NULL, NULL, 0, 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", "vcd",
sizeof(struct stream_priv_s), sizeof(struct stream_priv_s),
&stream_priv_dflts, &stream_priv_dflts,

View File

@ -78,7 +78,7 @@ static const m_option_t stream_opts_fields[] = {
{ NULL, NULL, 0, 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 = {
"vstream", "vstream",
sizeof(struct stream_priv_s), sizeof(struct stream_priv_s),
&stream_priv_dflts, &stream_priv_dflts,