summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-09-19 16:33:39 +0000
committergpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-09-19 16:33:39 +0000
commitc437f82e72ee570d1eb6c28ac02bacc0ecfe3b7b (patch)
tree9d17d1a24a3a69f540b754279073ef4924023ae2
parent3570634643ccc11e86c22ad4806c447a4fc75151 (diff)
downloadmpv-c437f82e72ee570d1eb6c28ac02bacc0ecfe3b7b.tar.bz2
mpv-c437f82e72ee570d1eb6c28ac02bacc0ecfe3b7b.tar.xz
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
-rw-r--r--libmpdemux/demuxer.c2
-rw-r--r--mplayer.c5
2 files changed, 7 insertions, 0 deletions
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);