Mercurial > mplayer.hg
comparison mplayer.c @ 1983:72f0648df475
-ac help / -vc help
author | arpi |
---|---|
date | Thu, 27 Sep 2001 12:59:35 +0000 |
parents | 5216f108cb4f |
children | 5fd3f344fc89 |
comparison
equal
deleted
inserted
replaced
1982:b190d3e9427c | 1983:72f0648df475 |
---|---|
428 free(conffile); | 428 free(conffile); |
429 } | 429 } |
430 } | 430 } |
431 } | 431 } |
432 | 432 |
433 //ifndef HAVE_GUI | 433 int main(int argc,char* argv[], char *envp[]){ |
434 int main(int argc,char* argv[], char *envp[]){ | |
435 //else | |
436 // int mplayer(int argc,char* argv[], char *envp[]){ | |
437 //endif | |
438 | 434 |
439 #ifdef USE_SUB | 435 #ifdef USE_SUB |
440 static subtitle* subtitles=NULL; | 436 static subtitle* subtitles=NULL; |
441 #endif | 437 #endif |
442 | 438 |
528 } | 524 } |
529 printf("\n"); | 525 printf("\n"); |
530 exit(0); | 526 exit(0); |
531 } | 527 } |
532 | 528 |
529 // check codec.conf | |
530 if(!parse_codec_cfg(get_path("codecs.conf"))){ | |
531 if(!parse_codec_cfg(DATADIR"/codecs.conf")){ | |
532 mp_msg(MSGT_CPLAYER,MSGL_HINT,MSGTR_CopyCodecsConf); | |
533 exit(1); | |
534 } | |
535 } | |
536 | |
537 if(audio_codec && strcmp(audio_codec,"help")==0){ | |
538 printf("Available audio codecs:\n"); | |
539 list_codecs(1); | |
540 printf("\n"); | |
541 exit(0); | |
542 } | |
543 if(video_codec && strcmp(video_codec,"help")==0){ | |
544 printf("Available video codecs:\n"); | |
545 list_codecs(0); | |
546 printf("\n"); | |
547 exit(0); | |
548 } | |
549 | |
550 | |
533 if(!num_filenames && !vcd_track && !dvd_title){ | 551 if(!num_filenames && !vcd_track && !dvd_title){ |
534 if(!use_gui){ | 552 if(!use_gui){ |
535 // no file/vcd/dvd -> show HELP: | 553 // no file/vcd/dvd -> show HELP: |
536 printf("%s",help_text); | 554 printf("%s",help_text); |
537 exit(0); | 555 exit(0); |
548 | 566 |
549 mp_msg_init(verbose+MSGL_STATUS); | 567 mp_msg_init(verbose+MSGL_STATUS); |
550 | 568 |
551 //------ load global data first ------ | 569 //------ load global data first ------ |
552 | 570 |
553 // check codec.conf | |
554 if(!parse_codec_cfg(get_path("codecs.conf"))){ | |
555 if(!parse_codec_cfg(DATADIR"/codecs.conf")){ | |
556 mp_msg(MSGT_CPLAYER,MSGL_HINT,MSGTR_CopyCodecsConf); | |
557 exit(1); | |
558 } | |
559 } | |
560 | 571 |
561 // check font | 572 // check font |
562 #ifdef USE_OSD | 573 #ifdef USE_OSD |
563 if(font_name){ | 574 if(font_name){ |
564 vo_font=read_font_desc(font_name,font_factor,verbose>1); | 575 vo_font=read_font_desc(font_name,font_factor,verbose>1); |