aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--stream/stream_dvd.c2
-rw-r--r--stream/stream_dvdnav.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/stream/stream_dvd.c b/stream/stream_dvd.c
index fa80e9b64b..f97a2ff5c8 100644
--- a/stream/stream_dvd.c
+++ b/stream/stream_dvd.c
@@ -148,7 +148,7 @@ 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[] = {
- { "hostname", ST_OFF(title), CONF_TYPE_INT, M_OPT_MIN, 1, 0, NULL },
+ { "hostname", ST_OFF(title), CONF_TYPE_INT, M_OPT_RANGE, 1, 99, NULL},
{ "filename", ST_OFF(device), CONF_TYPE_STRING, 0, 0 ,0, NULL},
{ NULL, NULL, 0, 0, 0, 0, NULL }
};
diff --git a/stream/stream_dvdnav.c b/stream/stream_dvdnav.c
index 9030761a96..403016b372 100644
--- a/stream/stream_dvdnav.c
+++ b/stream/stream_dvdnav.c
@@ -63,7 +63,7 @@ static struct stream_priv_s {
/// URL definition
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},
+ {"hostname", ST_OFF(track), CONF_TYPE_INT, M_OPT_RANGE, 1, 99, NULL},
{ NULL, NULL, 0, 0, 0, 0, NULL }
};
static const struct m_struct_st stream_opts = {