Mercurial > mplayer.hg
comparison mplayer.c @ 1583:ca7bf882d2f8
ehh. mp_msgt->mp_msg
author | arpi |
---|---|
date | Sat, 18 Aug 2001 19:52:14 +0000 |
parents | 12aa68bf2ff5 |
children | e49b3927c793 |
comparison
equal
deleted
inserted
replaced
1582:12aa68bf2ff5 | 1583:ca7bf882d2f8 |
---|---|
288 } | 288 } |
289 else mplSendMessage( mplUnknowError ); | 289 else mplSendMessage( mplUnknowError ); |
290 } | 290 } |
291 #endif | 291 #endif |
292 | 292 |
293 if(how) mp_msgt(MSGT_CPLAYER,MSGL_INFO,MSGTR_Exiting,how); | 293 if(how) mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_Exiting,how); |
294 mp_msg(MSGT_CPLAYER,MSGL_V,"max framesize was %d bytes\n",max_framesize); | 294 mp_msg(MSGT_CPLAYER,MSGL_V,"max framesize was %d bytes\n",max_framesize); |
295 if(benchmark){ | 295 if(benchmark){ |
296 double tot=video_time_usage+vout_time_usage+audio_time_usage; | 296 double tot=video_time_usage+vout_time_usage+audio_time_usage; |
297 double total_time_usage=(float)total_time_usage_start*0.000001; | 297 double total_time_usage=(float)total_time_usage_start*0.000001; |
298 mp_msg(MSGT_CPLAYER,MSGL_INFO,"BENCHMARKs: V:%8.3fs VO:%8.3fs A:%8.3fs Sys:%8.3fs = %8.3fs\n", | 298 mp_msg(MSGT_CPLAYER,MSGL_INFO,"BENCHMARKs: V:%8.3fs VO:%8.3fs A:%8.3fs Sys:%8.3fs = %8.3fs\n", |
335 if(sig_count==2) exit(1); | 335 if(sig_count==2) exit(1); |
336 if(sig_count>2){ | 336 if(sig_count>2){ |
337 // can't stop :( | 337 // can't stop :( |
338 kill(getpid(),SIGKILL); | 338 kill(getpid(),SIGKILL); |
339 } | 339 } |
340 mp_msgt(MSGT_CPLAYER,MSGL_FATAL,MSGTR_IntBySignal,x, | 340 mp_msg(MSGT_CPLAYER,MSGL_FATAL,MSGTR_IntBySignal,x, |
341 current_module?current_module:"unknown" | 341 current_module?current_module:"unknown" |
342 ); | 342 ); |
343 #ifdef HAVE_GUI | 343 #ifdef HAVE_GUI |
344 if ( !nogui ) | 344 if ( !nogui ) |
345 { | 345 { |
380 char *conffile; | 380 char *conffile; |
381 int conffile_fd; | 381 int conffile_fd; |
382 if (parse_config_file(conf, "/etc/mplayer.conf") < 0) | 382 if (parse_config_file(conf, "/etc/mplayer.conf") < 0) |
383 exit(1); | 383 exit(1); |
384 if ((conffile = get_path("")) == NULL) { | 384 if ((conffile = get_path("")) == NULL) { |
385 mp_msgt(MSGT_CPLAYER,MSGL_WARN,MSGTR_NoHomeDir); | 385 mp_msg(MSGT_CPLAYER,MSGL_WARN,MSGTR_NoHomeDir); |
386 } else { | 386 } else { |
387 mkdir(conffile, 0777); | 387 mkdir(conffile, 0777); |
388 free(conffile); | 388 free(conffile); |
389 if ((conffile = get_path("config")) == NULL) { | 389 if ((conffile = get_path("config")) == NULL) { |
390 mp_msgt(MSGT_CPLAYER,MSGL_ERR,MSGTR_GetpathProblem); | 390 mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_GetpathProblem); |
391 } else { | 391 } else { |
392 if ((conffile_fd = open(conffile, O_CREAT | O_EXCL | O_WRONLY, 0666)) != -1) { | 392 if ((conffile_fd = open(conffile, O_CREAT | O_EXCL | O_WRONLY, 0666)) != -1) { |
393 mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_CreatingCfgFile, conffile); | 393 mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_CreatingCfgFile, conffile); |
394 write(conffile_fd, default_config, strlen(default_config)); | 394 write(conffile_fd, default_config, strlen(default_config)); |
395 close(conffile_fd); | 395 close(conffile_fd); |