comparison mplayer.c @ 1690:09f9297d2ee6

-vo help fixed
author arpi
date Sat, 25 Aug 2001 19:11:24 +0000
parents dab7950fe1c3
children 0def229bd8bc
comparison
equal deleted inserted replaced
1689:8f80b446b4e4 1690:09f9297d2ee6
467 #endif 467 #endif
468 468
469 parse_cfgfiles(); 469 parse_cfgfiles();
470 num_filenames=parse_command_line(conf, argc, argv, envp, &filenames); 470 num_filenames=parse_command_line(conf, argc, argv, envp, &filenames);
471 if(num_filenames<0) exit(1); // error parsing cmdline 471 if(num_filenames<0) exit(1); // error parsing cmdline
472 if(!num_filenames && !vcd_track && !dvd_title){
473 // no file/vcd/dvd -> show HELP:
474 printf("%s",help_text);
475 exit(0);
476 }
477
478 // Many users forget to include command line in bugreports...
479 if(verbose){
480 printf("CommandLine:");
481 for(i=1;i<argc;i++)printf(" '%s'",argv[i]);
482 printf("\n");
483 printf("num_filenames: %d\n",num_filenames);
484 }
485 472
486 #ifndef USE_LIBVO2 473 #ifndef USE_LIBVO2
487 if(video_driver && strcmp(video_driver,"help")==0){ 474 if(video_driver && strcmp(video_driver,"help")==0){
488 printf("Available video output drivers:\n"); 475 printf("Available video output drivers:\n");
489 i=0; 476 i=0;
502 const ao_info_t *info = audio_out_drivers[i++]->info; 489 const ao_info_t *info = audio_out_drivers[i++]->info;
503 printf("\t%s\t%s\n", info->short_name, info->name); 490 printf("\t%s\t%s\n", info->short_name, info->name);
504 } 491 }
505 printf("\n"); 492 printf("\n");
506 exit(0); 493 exit(0);
494 }
495
496 if(!num_filenames && !vcd_track && !dvd_title){
497 // no file/vcd/dvd -> show HELP:
498 printf("%s",help_text);
499 exit(0);
500 }
501
502 // Many users forget to include command line in bugreports...
503 if(verbose){
504 printf("CommandLine:");
505 for(i=1;i<argc;i++)printf(" '%s'",argv[i]);
506 printf("\n");
507 printf("num_filenames: %d\n",num_filenames);
507 } 508 }
508 509
509 #ifdef HAVE_GUI 510 #ifdef HAVE_GUI
510 } 511 }
511 #endif 512 #endif