From c437f82e72ee570d1eb6c28ac02bacc0ecfe3b7b Mon Sep 17 00:00:00 2001 From: gpoirier Date: Mon, 19 Sep 2005 16:33:39 +0000 Subject: Prints -identify output for: - video codec of the current file; - signal numbers; - demuxer help header. Patch by kiriuja git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16523 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/demuxer.c | 2 ++ mplayer.c | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/libmpdemux/demuxer.c b/libmpdemux/demuxer.c index 3ecc551136..a13e7d8878 100644 --- a/libmpdemux/demuxer.c +++ b/libmpdemux/demuxer.c @@ -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; diff --git a/mplayer.c b/mplayer.c index a05c049b4d..f7d23236aa 100644 --- a/mplayer.c +++ b/mplayer.c @@ -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); -- cgit v1.2.3