From: Daniel Caujolle-B. <f1...@us...> - 2003-03-24 17:10:19
|
Update of /cvsroot/xine/xine-ui/src/aaui In directory sc8-pr-cvs1:/tmp/cvs-serv24831 Modified Files: main.c Log Message: support XINE_ENGINE_PARAM_VERBOSITY Index: main.c =================================================================== RCS file: /cvsroot/xine/xine-ui/src/aaui/main.c,v retrieving revision 1.52 retrieving revision 1.53 diff -u -r1.52 -r1.53 --- main.c 3 Feb 2003 00:40:08 -0000 1.52 +++ main.c 24 Mar 2003 17:10:12 -0000 1.53 @@ -105,10 +105,10 @@ /* options args */ static const char *short_options = "?h" - "da:qA:V:R::NP:v"; + "d::a:qA:V:R::NP:v"; static struct option long_options[] = { {"help" , no_argument , 0, 'h' }, - {"debug" , no_argument , 0, 'd' }, + {"debug" , optional_argument, 0, 'd' }, {"audio-channel" , required_argument, 0, 'a' }, {"auto-quit" , no_argument , 0, 'q' }, {"audio-driver" , required_argument, 0, 'A' }, @@ -581,9 +581,17 @@ switch(c) { case 'd': /* Enable debug messages */ - aaxine.debug_messages = 1; - break; + if(optarg != NULL) { + char *p = xine_chomp(optarg); + + if(p && strlen(p)) + aaxine.debug_messages = strtol(p, &p, 10); + } + else + aaxine.debug_messages = 1; + break; + case 'a': /* Select audio channel */ sscanf(optarg, "%i", &audio_channel); break; @@ -666,7 +674,8 @@ aaxine.xine = (xine_t *)xine_new(); xine_config_load (aaxine.xine, aaxine.configfile); - + xine_engine_set_param(aaxine.xine, XINE_ENGINE_PARAM_VERBOSITY, aaxine.debug_messages); + /* * xine init */ |