changeset 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 145ca84ffbf7
children c0bcfcf2a6cd
files mplayer.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Wed Jan 17 00:12:35 2007 +0000
+++ b/mplayer.c	Wed Jan 17 00:27:41 2007 +0000
@@ -3595,6 +3595,10 @@
   
   mp_msg_init();
 
+  for(i=1; i<argc; i++)
+    if(!strcmp(argv[i], "-really-quiet"))
+      verbose= -10;
+
   print_version();
 #if defined(WIN32) && defined(USE_WIN32DLL)
   set_path_env();