summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-07-30 16:06:59 +0200
committerwm4 <wm4@nowhere>2013-07-30 16:15:36 +0200
commit1848be363ecbd18b5c579dc6ef041a0510500f88 (patch)
treefffc76f8c356336a6c872bb0fa7bcf586d8a6bd2
parent06996810bfdb397aad766d66aa655c4625a7a253 (diff)
downloadmpv-1848be363ecbd18b5c579dc6ef041a0510500f88.tar.bz2
mpv-1848be363ecbd18b5c579dc6ef041a0510500f88.tar.xz
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.
-rw-r--r--stream/stream_cdda.c15
-rw-r--r--stream/stream_dvb.c5
-rw-r--r--stream/stream_vcd.c3
3 files changed, 0 insertions, 23 deletions
diff --git a/stream/stream_cdda.c b/stream/stream_cdda.c
index f245a6fe94..1c8e2ca2d6 100644
--- a/stream/stream_cdda.c
+++ b/stream/stream_cdda.c
@@ -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},
diff --git a/stream/stream_dvb.c b/stream/stream_dvb.c
index 53761e8f60..bd2b174807 100644
--- a/stream/stream_dvb.c
+++ b/stream/stream_dvb.c
@@ -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}
diff --git a/stream/stream_vcd.c b/stream/stream_vcd.c
index 229d78bfc2..38f6953b11 100644
--- a/stream/stream_vcd.c
+++ b/stream/stream_vcd.c
@@ -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 }