Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
28484:6abda55d2574 | 28485:3f597aacbb69 |
---|---|
137 double max_vout_time_usage=0; | 137 double max_vout_time_usage=0; |
138 double cur_video_time_usage=0; | 138 double cur_video_time_usage=0; |
139 double cur_vout_time_usage=0; | 139 double cur_vout_time_usage=0; |
140 int benchmark=0; | 140 int benchmark=0; |
141 | 141 |
142 #if defined(__MINGW32__) || defined(__CYGWIN__) | 142 #include "osdep/priority.h" |
143 char * proc_priority=NULL; | |
144 #endif | |
145 | 143 |
146 // A-V sync: | 144 // A-V sync: |
147 int delay_corrected=1; | 145 int delay_corrected=1; |
148 static float default_max_pts_correction=-1;//0.01f; | 146 static float default_max_pts_correction=-1;//0.01f; |
149 static float max_pts_correction=0;//default_max_pts_correction; | 147 static float max_pts_correction=0;//default_max_pts_correction; |
477 if(demuxer2) mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_UsingPass3ControlFile, frameno_filename); | 475 if(demuxer2) mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_UsingPass3ControlFile, frameno_filename); |
478 else mp_msg(MSGT_DEMUXER,MSGL_ERR,MSGTR_FormatNotRecognized); | 476 else mp_msg(MSGT_DEMUXER,MSGL_ERR,MSGTR_FormatNotRecognized); |
479 } | 477 } |
480 } | 478 } |
481 | 479 |
482 #if defined(__MINGW32__) || defined(__CYGWIN__) | 480 #ifdef CONFIG_PRIORITY |
483 if(proc_priority){ | 481 set_priority(); |
484 int i; | |
485 for(i=0; priority_presets_defs[i].name; i++){ | |
486 if(strcasecmp(priority_presets_defs[i].name, proc_priority) == 0) | |
487 break; | |
488 } | |
489 mp_msg(MSGT_CPLAYER,MSGL_STATUS,MSGTR_SettingProcessPriority, | |
490 priority_presets_defs[i].name); | |
491 SetPriorityClass(GetCurrentProcess(), priority_presets_defs[i].prio); | |
492 } | |
493 #endif | 482 #endif |
494 | 483 |
495 // check font | 484 // check font |
496 #ifdef CONFIG_FREETYPE | 485 #ifdef CONFIG_FREETYPE |
497 init_freetype(); | 486 init_freetype(); |