changeset 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 3636c18a1b5e
children fc520a27131d
files libmpdemux/demuxer.c mplayer.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demuxer.c	Mon Sep 19 15:23:15 2005 +0000
+++ b/libmpdemux/demuxer.c	Mon Sep 19 16:33:39 2005 +0000
@@ -513,6 +513,8 @@
 
   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;
--- a/mplayer.c	Mon Sep 19 15:23:15 2005 +0000
+++ b/mplayer.c	Mon Sep 19 16:33:39 2005 +0000
@@ -569,6 +569,8 @@
   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 @@
 
 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);