summaryrefslogtreecommitdiffstats
path: root/cfg-common.h
diff options
context:
space:
mode:
authorfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-04-02 18:29:16 +0000
committerfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-04-02 18:29:16 +0000
commit14ecebe920e68f12f6e882866f227c236c388502 (patch)
treeae5cdc0239e61c4ec8824f97b38f95e3012ccf72 /cfg-common.h
parenta97a94b9294c7434afb45dd687a85ac256058e58 (diff)
downloadmpv-14ecebe920e68f12f6e882866f227c236c388502.tar.bz2
mpv-14ecebe920e68f12f6e882866f227c236c388502.tar.xz
windows priority support patch by Rune Petersen <runner at mail.tele.dk> with the freedom to shoot yourself in the foot
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15043 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'cfg-common.h')
-rw-r--r--cfg-common.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/cfg-common.h b/cfg-common.h
index 636f8aad71..1bc7f573ed 100644
--- a/cfg-common.h
+++ b/cfg-common.h
@@ -6,6 +6,7 @@
{"verbose", &verbose, CONF_TYPE_INT, CONF_RANGE|CONF_GLOBAL, 0, 100, NULL},
{"v", cfg_inc_verbose, CONF_TYPE_FUNC, CONF_GLOBAL|CONF_NOSAVE, 0, 0, NULL},
{"include", cfg_include, CONF_TYPE_FUNC_PARAM, CONF_NOSAVE, 0, 0, NULL},
+ {"priority", &proc_priority, CONF_TYPE_STRING, 0, 0, 0, NULL},
// ------------------------- stream options --------------------
@@ -470,6 +471,24 @@ m_option_t audio_filter_conf[]={
{NULL, NULL, 0, 0, 0, 0, NULL}
};
+#ifdef WIN32
+
+extern char * proc_priority;
+
+struct {
+ char* name;
+ int prio;
+} priority_presets_defs[] = {
+ { "realtime", REALTIME_PRIORITY_CLASS},
+ { "high", HIGH_PRIORITY_CLASS},
+ { "abovenormal", ABOVE_NORMAL_PRIORITY_CLASS},
+ { "normal", NORMAL_PRIORITY_CLASS},
+ { "belownormal", BELOW_NORMAL_PRIORITY_CLASS},
+ { "idle", IDLE_PRIORITY_CLASS},
+ { NULL, NORMAL_PRIORITY_CLASS} /* default */
+};
+#endif /* WIN32 */
+
#ifdef USE_LIBAVCODEC
extern m_option_t lavc_decode_opts_conf[];
#endif