summaryrefslogtreecommitdiffstats
path: root/mencoder.c
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 /mencoder.c
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 'mencoder.c')
-rw-r--r--mencoder.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/mencoder.c b/mencoder.c
index 359f3a64a1..10fea81283 100644
--- a/mencoder.c
+++ b/mencoder.c
@@ -153,6 +153,10 @@ double cur_video_time_usage=0;
double cur_vout_time_usage=0;
int benchmark=0;
+#ifdef WIN32
+char * proc_priority=NULL;
+#endif
+
// A-V sync:
int delay_corrected=1;
static float default_max_pts_correction=-1;//0.01f;
@@ -479,6 +483,19 @@ if(!codecs_file || !parse_codec_cfg(codecs_file)){
mp_msg_set_level(verbose+MSGL_STATUS);
+#ifdef WIN32
+ if(proc_priority){
+ int i;
+ for(i=0; priority_presets_defs[i].name; i++){
+ if(strcasecmp(priority_presets_defs[i].name, proc_priority) == 0)
+ break;
+ }
+ mp_msg(MSGT_CPLAYER,MSGL_STATUS,"Setting process priority: %s\n",
+ priority_presets_defs[i].name);
+ SetPriorityClass(GetCurrentProcess(), priority_presets_defs[i].prio);
+ }
+#endif
+
// check font
#ifdef USE_OSD
#ifdef HAVE_FREETYPE