codecs.conf parser hangup fixed by iive, cpu usage reset at start

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3935 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-01-01 22:46:07 +00:00
parent 9505de0250
commit 0cce2a7b35
1 changed files with 5 additions and 4 deletions

View File

@ -559,10 +559,10 @@ if(!parse_codec_cfg(get_path("codecs.conf"))){
if(!parse_codec_cfg(CONFDIR"/codecs.conf")){
mp_msg(MSGT_CPLAYER,MSGL_HINT,MSGTR_CopyCodecsConf);
// printf("Exit.\n");
// exit(0); // From unknown reason a hangup occurs here :((((((
kill(getpid(),SIGTERM);
usleep(20000);
kill(getpid(),SIGKILL);
exit(0); // From unknown reason a hangup occurs here :((((((
// kill(getpid(),SIGTERM);
// usleep(20000);
// kill(getpid(),SIGKILL);
}
}
@ -1330,6 +1330,7 @@ if(!use_stdin && !slave_mode){
InitTimer();
total_time_usage_start=GetTimer();
audio_time_usage=0; video_time_usage=0; vout_time_usage=0;
while(!eof){
// unsigned int aq_total_time=GetTimer();