comparison mplayer.c @ 16522:49ef03cb382a

Prints -identify output for: - video codec of the current file; - signal numbers; - demuxer help header. Patch by kiriuja <mplayer DATH patches AH en DATH directo POIS net>
author gpoirier
date Mon, 19 Sep 2005 16:33:39 +0000
parents f17b3c152fd6
children 7658dde0777b
comparison
equal deleted inserted replaced
16521:3636c18a1b5e 16522:49ef03cb382a
567 #endif 567 #endif
568 } 568 }
569 mp_msg(MSGT_CPLAYER,MSGL_FATAL,"\n" MSGTR_IntBySignal,x, 569 mp_msg(MSGT_CPLAYER,MSGL_FATAL,"\n" MSGTR_IntBySignal,x,
570 current_module?current_module:mp_gettext("unknown") 570 current_module?current_module:mp_gettext("unknown")
571 ); 571 );
572 if (identify)
573 mp_msg(MSGT_GLOBAL, MSGL_INFO, "ID_SIGNAL=%d\n", x);
572 if(sig_count<=1) 574 if(sig_count<=1)
573 switch(x){ 575 switch(x){
574 case SIGINT: 576 case SIGINT:
575 case SIGQUIT: 577 case SIGQUIT:
576 case SIGTERM: 578 case SIGTERM:
2136 sh_video = d_video->sh = NULL; 2138 sh_video = d_video->sh = NULL;
2137 goto main; // exit_player(MSGTR_Exit_error); 2139 goto main; // exit_player(MSGTR_Exit_error);
2138 } 2140 }
2139 2141
2140 inited_flags|=INITED_VCODEC; 2142 inited_flags|=INITED_VCODEC;
2143
2144 if (identify && sh_video->codec)
2145 mp_msg(MSGT_GLOBAL, MSGL_INFO, "ID_VIDEO_CODEC=%s\n", sh_video->codec->name);
2141 2146
2142 if(auto_quality>0){ 2147 if(auto_quality>0){
2143 // Auto quality option enabled 2148 // Auto quality option enabled
2144 output_quality=get_video_quality_max(sh_video); 2149 output_quality=get_video_quality_max(sh_video);
2145 if(auto_quality>output_quality) auto_quality=output_quality; 2150 if(auto_quality>output_quality) auto_quality=output_quality;