diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-02-10 15:34:44 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-02-10 15:34:44 +0000 |
commit | cdfafa69996bce40732997dca168b9f36794dbe8 (patch) | |
tree | 5244396fad3f3c8b89886d4403a7701a80f87ca4 /mplayer.c | |
parent | 97e427039d8123eed37990eaaf13b403daaae2da (diff) | |
download | mpv-cdfafa69996bce40732997dca168b9f36794dbe8.tar.bz2 mpv-cdfafa69996bce40732997dca168b9f36794dbe8.tar.xz |
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
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 19 |
1 files changed, 6 insertions, 13 deletions
@@ -84,9 +84,7 @@ int quiet=0; int enable_mouse_movements=0; float start_volume = -1; -#if defined(__MINGW32__) || defined(__CYGWIN__) -char * proc_priority=NULL; -#endif +#include "osdep/priority.h" char *heartbeat_cmd; @@ -2596,17 +2594,12 @@ int gui_no_filename=0; SetErrorMode(0x8003); // request 1ms timer resolution timeBeginPeriod(1); - 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); - } #endif + +#ifdef CONFIG_PRIORITY + set_priority(); +#endif + #ifndef CONFIG_GUI if(use_gui){ mp_msg(MSGT_CPLAYER,MSGL_WARN,MSGTR_NoGui); |