[MPlayer-cvslog] r27267 - in trunk/stream: stream_dvd.c stream_dvdnav.c

nicodvb subversion at mplayerhq.hu
Sat Jul 12 10:07:54 CEST 2008


Author: nicodvb
Date: Sat Jul 12 10:07:54 2008
New Revision: 27267

Log:
in dvd streams the title part ranges from 1 to 99

Modified:
   trunk/stream/stream_dvd.c
   trunk/stream/stream_dvdnav.c

Modified: trunk/stream/stream_dvd.c
==============================================================================
--- trunk/stream/stream_dvd.c	(original)
+++ trunk/stream/stream_dvd.c	Sat Jul 12 10:07:54 2008
@@ -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 }
 };

Modified: trunk/stream/stream_dvdnav.c
==============================================================================
--- trunk/stream/stream_dvdnav.c	(original)
+++ trunk/stream/stream_dvdnav.c	Sat Jul 12 10:07:54 2008
@@ -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 = {



More information about the MPlayer-cvslog mailing list