Mercurial > mplayer.hg
diff mencoder.c @ 28485:3f597aacbb69
Add priority support for OS/2 and factorize the Windows priority support.
patch by KO Myung-Hun, komh chollian net
author | diego |
---|---|
date | Tue, 10 Feb 2009 15:34:44 +0000 |
parents | 21504ba0f5d3 |
children | dc5daa853163 |
line wrap: on
line diff
--- a/mencoder.c Tue Feb 10 02:01:35 2009 +0000 +++ b/mencoder.c Tue Feb 10 15:34:44 2009 +0000 @@ -139,9 +139,7 @@ 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 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