summaryrefslogtreecommitdiffstats
path: root/mencoder.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2009-02-12 04:17:55 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2009-02-12 04:17:55 +0200
commit1e869638280f962fb80f372d152234f21246c2af (patch)
tree64657f88e7902aa000f44f40be4f8e575f58c8de /mencoder.c
parent9790f4e6e72cdc8093be966d3d6e007c8f44a035 (diff)
parent379b176f25905f273a368336c3f5f287eeea51a2 (diff)
downloadmpv-1e869638280f962fb80f372d152234f21246c2af.tar.bz2
mpv-1e869638280f962fb80f372d152234f21246c2af.tar.xz
Merge svn changes up to r28537
Diffstat (limited to 'mencoder.c')
-rw-r--r--mencoder.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/mencoder.c b/mencoder.c
index 413d5b39a2..1661722679 100644
--- a/mencoder.c
+++ b/mencoder.c
@@ -142,9 +142,7 @@ double cur_video_time_usage=0;
double cur_vout_time_usage=0;
int benchmark=0;
-#if defined(__MINGW32__) || defined(__CYGWIN__)
-char * proc_priority=NULL;
-#endif
+#include "osdep/priority.h"
// A-V sync:
int delay_corrected=1;
@@ -481,17 +479,8 @@ if (frameno_filename) {
}
}
-#if defined(__MINGW32__) || defined(__CYGWIN__)
- 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,MSGTR_SettingProcessPriority,
- priority_presets_defs[i].name);
- SetPriorityClass(GetCurrentProcess(), priority_presets_defs[i].prio);
- }
+#ifdef CONFIG_PRIORITY
+ set_priority();
#endif
// check font