summaryrefslogtreecommitdiffstats
path: root/cfg-mplayer.h
diff options
context:
space:
mode:
authorvoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-08-23 16:09:30 +0000
committervoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-08-23 16:09:30 +0000
commitf1fbca4bdd35b7ceb636dac0b979fa1acca9e609 (patch)
treec04e7a27a93c5e0600527963875dc00590c177e3 /cfg-mplayer.h
parentffac6ce7eba3dea5878f3eb482a11e9ab7606455 (diff)
downloadmpv-f1fbca4bdd35b7ceb636dac0b979fa1acca9e609.tar.bz2
mpv-f1fbca4bdd35b7ceb636dac0b979fa1acca9e609.tar.xz
Automatic TV channels scanning ability for MPlayer.
Code is based on patch from Otvos Attila oattila at chello dot hu git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24125 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'cfg-mplayer.h')
-rw-r--r--cfg-mplayer.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/cfg-mplayer.h b/cfg-mplayer.h
index 502661559c..294e1ca743 100644
--- a/cfg-mplayer.h
+++ b/cfg-mplayer.h
@@ -114,6 +114,14 @@ m_option_t vd_conf[]={
{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 @@ m_option_t mplayer_opts[]={
{"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"