Mercurial > mplayer.hg
changeset 27235:ea35e46aa7af
in dvd streams the title part ranges from 1 to 99
author | nicodvb |
---|---|
date | Sat, 12 Jul 2008 08:07:54 +0000 |
parents | fe1be13f3aed |
children | 9cbd4395dfca |
files | stream/stream_dvd.c stream/stream_dvdnav.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/stream_dvd.c Fri Jul 11 22:04:29 2008 +0000 +++ b/stream/stream_dvd.c Sat Jul 12 08:07:54 2008 +0000 @@ -148,7 +148,7 @@ #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 } };
--- a/stream/stream_dvdnav.c Fri Jul 11 22:04:29 2008 +0000 +++ b/stream/stream_dvdnav.c Sat Jul 12 08:07:54 2008 +0000 @@ -63,7 +63,7 @@ /// 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 = {