comparison mplayer.c @ 21930:6af0d674aa53

print_version() and others get executed before the command line has been parsed so -really-quiet does not silence them even though it should according to the verbosity level set by it, this simple change/hack fixes it
author michael
date Wed, 17 Jan 2007 00:27:41 +0000
parents b36abbbca01e
children ebd2d5efb11b
comparison
equal deleted inserted replaced
21929:145ca84ffbf7 21930:6af0d674aa53
3592 srand((int) time(NULL)); 3592 srand((int) time(NULL));
3593 3593
3594 InitTimer(); 3594 InitTimer();
3595 3595
3596 mp_msg_init(); 3596 mp_msg_init();
3597
3598 for(i=1; i<argc; i++)
3599 if(!strcmp(argv[i], "-really-quiet"))
3600 verbose= -10;
3597 3601
3598 print_version(); 3602 print_version();
3599 #if defined(WIN32) && defined(USE_WIN32DLL) 3603 #if defined(WIN32) && defined(USE_WIN32DLL)
3600 set_path_env(); 3604 set_path_env();
3601 #endif /*WIN32 && USE_WIN32DLL*/ 3605 #endif /*WIN32 && USE_WIN32DLL*/