comparison stream/stream_dvdnav.c @ 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 9077741c9ed6
children a6b506faeb34
comparison
equal deleted inserted replaced
27234:fe1be13f3aed 27235:ea35e46aa7af
61 61
62 #define ST_OFF(f) M_ST_OFF(struct stream_priv_s,f) 62 #define ST_OFF(f) M_ST_OFF(struct stream_priv_s,f)
63 /// URL definition 63 /// URL definition
64 static const m_option_t stream_opts_fields[] = { 64 static const m_option_t stream_opts_fields[] = {
65 {"filename", ST_OFF(device), CONF_TYPE_STRING, 0, 0, 0, NULL }, 65 {"filename", ST_OFF(device), CONF_TYPE_STRING, 0, 0, 0, NULL },
66 {"hostname", ST_OFF(track), CONF_TYPE_INT, 0, 0, 0, NULL}, 66 {"hostname", ST_OFF(track), CONF_TYPE_INT, M_OPT_RANGE, 1, 99, NULL},
67 { NULL, NULL, 0, 0, 0, 0, NULL } 67 { NULL, NULL, 0, 0, 0, 0, NULL }
68 }; 68 };
69 static const struct m_struct_st stream_opts = { 69 static const struct m_struct_st stream_opts = {
70 "dvd", 70 "dvd",
71 sizeof(struct stream_priv_s), 71 sizeof(struct stream_priv_s),