From cdfafa69996bce40732997dca168b9f36794dbe8 Mon Sep 17 00:00:00 2001 From: diego Date: Tue, 10 Feb 2009 15:34:44 +0000 Subject: Add priority support for OS/2 and factorize the Windows priority support. patch by KO Myung-Hun, komh chollian net git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28520 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mencoder.c | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'mencoder.c') diff --git a/mencoder.c b/mencoder.c index df85a37974..2d9d037e22 100644 --- a/mencoder.c +++ b/mencoder.c @@ -139,9 +139,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; @@ -479,17 +477,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 -- cgit v1.2.3