diff options
author | arpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-03-19 03:45:49 +0000 |
---|---|---|
committer | arpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-03-19 03:45:49 +0000 |
commit | f907302c24c6f69a654aa1ffc61381e3b1b6f592 (patch) | |
tree | ddbea2d18fad7369cc1c6dcd3164dc1a2dc44300 /mplayer.c | |
parent | 48edc5f4bdd697cb2176613c6a3b8710884f831d (diff) | |
download | mpv-f907302c24c6f69a654aa1ffc61381e3b1b6f592.tar.bz2 mpv-f907302c24c6f69a654aa1ffc61381e3b1b6f592.tar.xz |
new configfile/cmdline parser
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@154 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 21 |
1 files changed, 8 insertions, 13 deletions
@@ -79,6 +79,11 @@ extern int errno; #define DEBUG if(0) static int verbose=0; +static int cfg_inc_verbose(struct config *conf){ + ++verbose; + return 0; +} + static int max_framesize=0; static int dbg_es_sent=0; @@ -312,16 +317,6 @@ void exit_sighandler(int x){ exit_player(NULL); } -void usage(void){ - printf("%s",help_text); - exit(0); -} - -void missing_param(char *s){ - printf("Missing parameter: %s\n", s); - exit(1); -} - int divx_quality=0; int main(int argc,char* argv[], char *envp[]){ @@ -435,9 +430,9 @@ if(video_driver && strcmp(video_driver,"help")==0){ if(!filename){ if(vcd_track) filename="/dev/cdrom"; - else - //filename="MI2-Trailer.avi"; - usage(); + else { + printf("%s",help_text); exit(0); + } } |