1
mirror of https://github.com/mpv-player/mpv synced 2024-09-05 02:48:21 +02:00

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>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16523 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
gpoirier 2005-09-19 16:33:39 +00:00
parent 3570634643
commit c437f82e72
2 changed files with 7 additions and 0 deletions

View File

@ -513,6 +513,8 @@ void demuxer_help(void)
mp_msg(MSGT_DEMUXER, MSGL_INFO, "Available demuxers:\n");
mp_msg(MSGT_DEMUXER, MSGL_INFO, " demuxer: type info: (comment)\n");
if (identify)
mp_msg(MSGT_GLOBAL, MSGL_INFO, "ID_DEMUXERS\n");
for (i = 0; demuxer_list[i]; i++) {
if (demuxer_list[i]->type > DEMUXER_TYPE_MAX) // Don't display special demuxers
continue;

View File

@ -569,6 +569,8 @@ static void exit_sighandler(int x){
mp_msg(MSGT_CPLAYER,MSGL_FATAL,"\n" MSGTR_IntBySignal,x,
current_module?current_module:mp_gettext("unknown")
);
if (identify)
mp_msg(MSGT_GLOBAL, MSGL_INFO, "ID_SIGNAL=%d\n", x);
if(sig_count<=1)
switch(x){
case SIGINT:
@ -2139,6 +2141,9 @@ if(!sh_video->inited){
inited_flags|=INITED_VCODEC;
if (identify && sh_video->codec)
mp_msg(MSGT_GLOBAL, MSGL_INFO, "ID_VIDEO_CODEC=%s\n", sh_video->codec->name);
if(auto_quality>0){
// Auto quality option enabled
output_quality=get_video_quality_max(sh_video);