comparison mplayer.c @ 1255:94f2853ec6f4

-dsp option removed, displaying help text (-ao oss:dsp_path)
author alex
date Mon, 02 Jul 2001 19:25:34 +0000
parents 76263a48a57b
children 202d9e2dc202
comparison
equal deleted inserted replaced
1254:59739c0d91cf 1255:94f2853ec6f4
368 float font_factor=0.75; 368 float font_factor=0.75;
369 char *sub_name=NULL; 369 char *sub_name=NULL;
370 float sub_delay=0; 370 float sub_delay=0;
371 float sub_fps=0; 371 float sub_fps=0;
372 int sub_auto = 1; 372 int sub_auto = 1;
373 char *dsp=NULL; 373 /*DSP!!char *dsp=NULL;*/
374 374
375 float rel_seek_secs=0; 375 float rel_seek_secs=0;
376 376
377 extern char *vo_subdevice; 377 extern char *vo_subdevice;
378 extern char *ao_subdevice; 378 extern char *ao_subdevice;
625 } 625 }
626 if (!audio_out){ 626 if (!audio_out){
627 fprintf(stderr,"Invalid audio output driver name: %s\nUse '-ao help' to get a list of available audio drivers.\n",audio_driver); 627 fprintf(stderr,"Invalid audio output driver name: %s\nUse '-ao help' to get a list of available audio drivers.\n",audio_driver);
628 return 0; 628 return 0;
629 } 629 }
630 if(dsp) audio_out->control(AOCONTROL_SET_DEVICE,(int)dsp); 630 /*DSP!! if(dsp) audio_out->control(AOCONTROL_SET_DEVICE,(int)dsp);*/
631 631
632 // check codec.conf 632 // check codec.conf
633 if(!parse_codec_cfg(get_path("codecs.conf"))){ 633 if(!parse_codec_cfg(get_path("codecs.conf"))){
634 printf("(copy/link DOCS/codecs.conf to ~/.mplayer/codecs.conf)\n"); 634 printf("(copy/link DOCS/codecs.conf to ~/.mplayer/codecs.conf)\n");
635 GUI_MSG( mplCodecConfNotFound ) 635 GUI_MSG( mplCodecConfNotFound )
804 file_format=DEMUXER_TYPE_UNKNOWN; 804 file_format=DEMUXER_TYPE_UNKNOWN;
805 } else { 805 } else {
806 printf("Detected MPEG-ES file format!\n"); 806 printf("Detected MPEG-ES file format!\n");
807 } 807 }
808 } 808 }
809 #ifdef MOV
810 //=============== Try to open as MOV file: =================
811 if(file_format==DEMUXER_TYPE_UNKNOWN || file_format==DEMUXER_TYPE_MOV){
812 stream_reset(stream);
813 demuxer=new_demuxer(stream,DEMUXER_TYPE_MOV,audio_id,video_id,dvdsub_id);
814 // stream_seek(demuxer->stream,seek_to_byte);
815 if(mov_check_file(demuxer)){
816 printf("Detected MOV file format!\n");
817 file_format=DEMUXER_TYPE_MOV;
818 }
819 }
820 #endif
809 //=============== Unknown, exiting... =========================== 821 //=============== Unknown, exiting... ===========================
810 if(file_format==DEMUXER_TYPE_UNKNOWN){ 822 if(file_format==DEMUXER_TYPE_UNKNOWN){
811 fprintf(stderr,"============= Sorry, this file format not recognized/supported ===============\n"); 823 fprintf(stderr,"============= Sorry, this file format not recognized/supported ===============\n");
812 fprintf(stderr,"=== If this file is an AVI, ASF or MPEG stream, please contact the author! ===\n"); 824 fprintf(stderr,"=== If this file is an AVI, ASF or MPEG stream, please contact the author! ===\n");
813 GUI_MSG( mplUnknowFileType ) 825 GUI_MSG( mplUnknowFileType )