mirror of https://github.com/mpv-player/mpv
in dvd streams the title part ranges from 1 to 99
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27267 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
c0455325f0
commit
b16d3fd6c2
|
@ -148,7 +148,7 @@ static struct stream_priv_s {
|
||||||
#define ST_OFF(f) M_ST_OFF(struct stream_priv_s,f)
|
#define ST_OFF(f) M_ST_OFF(struct stream_priv_s,f)
|
||||||
/// URL definition
|
/// URL definition
|
||||||
static const m_option_t stream_opts_fields[] = {
|
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},
|
{ "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 }
|
||||||
};
|
};
|
||||||
|
|
|
@ -63,7 +63,7 @@ static struct stream_priv_s {
|
||||||
/// URL definition
|
/// URL definition
|
||||||
static const m_option_t stream_opts_fields[] = {
|
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 },
|
||||||
{"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 }
|
{ NULL, NULL, 0, 0, 0, 0, NULL }
|
||||||
};
|
};
|
||||||
static const struct m_struct_st stream_opts = {
|
static const struct m_struct_st stream_opts = {
|
||||||
|
|
Loading…
Reference in New Issue