[MPlayer-dev-eng] [PATCH]Increase MAX_CARDS in stream/stream_dvb.c

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Jul 8 00:00:02 CEST 2010


Nico, any objections?

Carl Eugen
-------------- next part --------------
Index: stream/stream_dvb.c
===================================================================
--- stream/stream_dvb.c	(revision 31644)
+++ stream/stream_dvb.c	(working copy)
@@ -50,6 +50,7 @@
 #include "dvbin.h"
 
 
+#define MAX_CARDS 8
 #define MAX_CHANNELS 8
 #define CHANNEL_LINE_LEN 256
 #define min(a, b) ((a) <= (b) ? (a) : (b))
@@ -75,7 +76,7 @@
 /// URL definition
 static const m_option_t stream_params[] = {
 	{"prog", ST_OFF(prog), CONF_TYPE_STRING, 0, 0 ,0, NULL},
-	{"card", ST_OFF(card), CONF_TYPE_INT, M_OPT_RANGE, 1, 4, NULL},
+	{"card", ST_OFF(card), CONF_TYPE_INT, M_OPT_RANGE, 1, MAX_CARDS, NULL},
 	{"timeout",ST_OFF(timeout),  CONF_TYPE_INT, M_OPT_RANGE, 1, 30, NULL},
 	{"file", ST_OFF(file), CONF_TYPE_STRING, 0, 0 ,0, NULL},
 
@@ -748,7 +749,6 @@
 	return STREAM_OK;
 }
 
-#define MAX_CARDS 4
 dvb_config_t *dvb_get_config(void)
 {
 	int i, fd, type, size;


More information about the MPlayer-dev-eng mailing list