mirror of https://github.com/mpv-player/mpv
stream: remove inactive URL option fields
The URL option parser only accesses certain fields. Remove the fields
that are not accessed, and thus are completely unused and inaccessible.
Historically, these fields were supposed to be settable using an extra
list of options passed to open_stream(). Commit f518cf7
removed these
extra options. Apparently nothing ever actually used this facility.
This commit is contained in:
parent
06996810bf
commit
1848be363e
|
@ -79,21 +79,6 @@ static struct cdda_params {
|
|||
|
||||
#define ST_OFF(f) M_ST_OFF(struct cdda_params, f)
|
||||
static const m_option_t cdda_params_fields[] = {
|
||||
{"speed", ST_OFF(speed), CONF_TYPE_INT, M_OPT_RANGE, 0, 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},
|
||||
{"sector-size", ST_OFF(sector_size), CONF_TYPE_INT, M_OPT_RANGE, 1, 100,
|
||||
NULL},
|
||||
{"overlap", ST_OFF(search_overlap), CONF_TYPE_INT, M_OPT_RANGE, -1, 75,
|
||||
NULL},
|
||||
{"toc-bias", ST_OFF(toc_bias), CONF_TYPE_INT, 0, 0, 0, NULL},
|
||||
{"toc-offset", ST_OFF(toc_offset), CONF_TYPE_INT, 0, 0, 0, NULL},
|
||||
{"noskip", ST_OFF(no_skip), CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
||||
{"skip", ST_OFF(no_skip), CONF_TYPE_FLAG, 0, 1, 0, NULL},
|
||||
{"device", ST_OFF(device), CONF_TYPE_STRING, 0, 0, 0, NULL},
|
||||
{"span", ST_OFF(span), CONF_TYPE_INT_PAIR, 0, 0, 0, NULL},
|
||||
/// For url parsing
|
||||
{"hostname", ST_OFF(span), CONF_TYPE_INT_PAIR, 0, 0, 0, NULL},
|
||||
{"port", ST_OFF(speed), CONF_TYPE_INT, M_OPT_RANGE, 1, 100, NULL},
|
||||
{"filename", ST_OFF(device), CONF_TYPE_STRING, 0, 0, 0, NULL},
|
||||
|
|
|
@ -74,11 +74,6 @@ stream_defaults =
|
|||
|
||||
/// URL definition
|
||||
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},
|
||||
{"timeout",ST_OFF(timeout), CONF_TYPE_INT, M_OPT_RANGE, 1, 30, NULL},
|
||||
{"file", ST_OFF(file), CONF_TYPE_STRING, 0, 0 ,0, NULL},
|
||||
|
||||
{"hostname", ST_OFF(prog), CONF_TYPE_STRING, 0, 0, 0, NULL },
|
||||
{"username", ST_OFF(card), CONF_TYPE_INT, M_OPT_RANGE, 1, 4, NULL},
|
||||
{NULL, NULL, 0, 0, 0, 0, NULL}
|
||||
|
|
|
@ -70,9 +70,6 @@ static struct stream_priv_s {
|
|||
#define ST_OFF(f) M_ST_OFF(struct stream_priv_s,f)
|
||||
/// URL definition
|
||||
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
|
||||
{ "hostname", ST_OFF(track), CONF_TYPE_INT, M_OPT_MIN, 1, 0, NULL },
|
||||
{ "filename", ST_OFF(device), CONF_TYPE_STRING, 0, 0 ,0, NULL},
|
||||
{ NULL, NULL, 0, 0, 0, 0, NULL }
|
||||
|
|
Loading…
Reference in New Issue