comparison mencoder.c @ 5223:8c7b6ba2b5e9

splitted mp_msg_init and mp_msg_set_level
author alex
date Wed, 20 Mar 2002 15:38:13 +0000
parents 22b912fc4bdb
children 870e932096ff
comparison
equal deleted inserted replaced
5222:202fc9c7a372 5223:8c7b6ba2b5e9
104 /************************************************************************** 104 /**************************************************************************
105 Video accelerated architecture 105 Video accelerated architecture
106 **************************************************************************/ 106 **************************************************************************/
107 vo_vaa_t vo_vaa; 107 vo_vaa_t vo_vaa;
108 int vo_doublebuffering; 108 int vo_doublebuffering;
109 int vaa_use_dr; 109 int vo_directrendering;
110 110
111 //-------------------------- 111 //--------------------------
112 112
113 // cache2: 113 // cache2:
114 static int stream_cache_size=0; 114 static int stream_cache_size=0;
473 unsigned int timer_start; 473 unsigned int timer_start;
474 474
475 //int out_buffer_size=0x200000; 475 //int out_buffer_size=0x200000;
476 //unsigned char* out_buffer=malloc(out_buffer_size); 476 //unsigned char* out_buffer=malloc(out_buffer_size);
477 477
478 mp_msg_init(MSGL_STATUS); 478 mp_msg_init();
479 mp_msg_set_level(MSGL_STATUS);
479 mp_msg(MSGT_CPLAYER,MSGL_INFO,"%s",banner_text); 480 mp_msg(MSGT_CPLAYER,MSGL_INFO,"%s",banner_text);
480 481
481 // check codec.conf 482 // check codec.conf
482 if(!parse_codec_cfg(get_path("codecs.conf"))){ 483 if(!parse_codec_cfg(get_path("codecs.conf"))){
483 if(!parse_codec_cfg(CONFDIR"/codecs.conf")){ 484 if(!parse_codec_cfg(CONFDIR"/codecs.conf")){
533 if(!filename && !vcd_track && !dvd_title && !tv_param_on){ 534 if(!filename && !vcd_track && !dvd_title && !tv_param_on){
534 printf("\nMissing filename!\n\n"); 535 printf("\nMissing filename!\n\n");
535 mencoder_exit(1,NULL); 536 mencoder_exit(1,NULL);
536 } 537 }
537 538
538 mp_msg_init(verbose+MSGL_STATUS); 539 mp_msg_set_level(verbose+MSGL_STATUS);
539 540
540 stream=open_stream(filename,vcd_track,&file_format); 541 stream=open_stream(filename,vcd_track,&file_format);
541 542
542 if(!stream){ 543 if(!stream){
543 printf("Cannot open file/device\n"); 544 printf("Cannot open file/device\n");