diff cfg-mplayer.h @ 24105:9e71e0345c35

Automatic TV channels scanning ability for MPlayer. Code is based on patch from Otvos Attila oattila at chello dot hu
author voroshil
date Thu, 23 Aug 2007 16:09:30 +0000
parents f3db21f1963b
children 2bf8d87447d7
line wrap: on
line diff
--- a/cfg-mplayer.h	Thu Aug 23 14:20:31 2007 +0000
+++ b/cfg-mplayer.h	Thu Aug 23 16:09:30 2007 +0000
@@ -114,6 +114,14 @@
 	{NULL, NULL, 0, 0, 0, 0, NULL}
 };
 
+#ifdef USE_TV
+m_option_t tvscan_conf[]={
+	{"autostart", &stream_tv_defaults.scan, CONF_TYPE_FLAG, 0, 0, 1, NULL},
+	{"threshold", &stream_tv_defaults.scan_threshold, CONF_TYPE_INT, CONF_RANGE, 1, 100, NULL},
+	{"period", &stream_tv_defaults.scan_period, CONF_TYPE_FLOAT, CONF_RANGE, 0.1, 2.0, NULL},
+	{NULL, NULL, 0, 0, 0, 0, NULL}
+};
+#endif
 /*
  * CONF_TYPE_FUNC_FULL :
  * allows own implementations for passing the params
@@ -387,6 +395,11 @@
 	{"mouse-movements", &enable_mouse_movements, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
 	{"nomouse-movements", &enable_mouse_movements, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
 	{"doubleclick-time", &doubleclick_time, CONF_TYPE_INT, CONF_RANGE, 0, 1000, NULL},
+#ifdef USE_TV
+	{"tvscan", &tvscan_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
+#else
+	{"tvscan", "MPlayer was compiled without TV interface support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
+#endif
 
 #define MAIN_CONF
 #include "cfg-common.h"