summaryrefslogtreecommitdiffstats
path: root/cfg-common.h
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-09 23:46:06 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-09 23:46:06 +0000
commitaabf596111a5545a6d4217646f69b80b1aba3552 (patch)
treedf60e7387884d47dc0fec52cb53eda097caf7ab2 /cfg-common.h
parent74aea030e144420f1560d2a4621bf0edaf1b15cd (diff)
downloadmpv-aabf596111a5545a6d4217646f69b80b1aba3552.tar.bz2
mpv-aabf596111a5545a6d4217646f69b80b1aba3552.tar.xz
added tv subsystem
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2791 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'cfg-common.h')
-rw-r--r--cfg-common.h27
1 files changed, 26 insertions, 1 deletions
diff --git a/cfg-common.h b/cfg-common.h
index b01a2350fc..1a0dba2c32 100644
--- a/cfg-common.h
+++ b/cfg-common.h
@@ -1,4 +1,4 @@
-
+#ifdef MAIN_CONF /* this will be included in conf[] */
// ------------------------- stream options --------------------
#ifdef USE_STREAM_CACHE
@@ -79,3 +79,28 @@
{"oldpp", "MPlayer was compiled without opendivx library", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
#endif
+#ifdef USE_TV
+ {"tv", tvopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0},
+#endif
+
+#else
+
+#include "config.h"
+
+#ifdef USE_TV
+#include "libmpdemux/tv.h"
+
+struct config tvopts_conf[]={
+ {"on", &tv_param_on, CONF_TYPE_FLAG, 0, 0, 1},
+ {"driver", &tv_param_driver, CONF_TYPE_STRING, 0, 0, 0},
+ {"device", &tv_param_device, CONF_TYPE_STRING, 0, 0, 0},
+ {"freq", &tv_param_freq, CONF_TYPE_FLOAT, CONF_RANGE, 0, 2500000},
+ {"channel", &tv_param_channel, CONF_TYPE_STRING, 0, 0, 0},
+ {"norm", &tv_param_norm, CONF_TYPE_STRING, 0, 0, 0},
+ {"width", &tv_param_width, CONF_TYPE_INT, 0, 0, 4096},
+ {"height", &tv_param_height, CONF_TYPE_INT, 0, 0, 4096},
+ {NULL, NULL, 0, 0, 0, 0}
+};
+#endif
+
+#endif