summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c95
1 files changed, 95 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index 4c615028a4..72c85ccc97 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -4942,6 +4942,101 @@ if(step_sec>0) {
mp_msg(MSGT_GLOBAL,MSGL_INFO, "ANS_LENGTH=%.2lf\n", demuxer_get_time_length(demuxer));
} break;
+ case MP_CMD_GET_FILENAME : {
+ mp_msg(MSGT_GLOBAL,MSGL_INFO, "ANS_FILENAME='%s'\n", get_metadata (META_NAME));
+ } break;
+
+ case MP_CMD_GET_VIDEO_CODEC : {
+ char *inf = get_metadata (META_VIDEO_CODEC);
+ if (!inf) inf = strdup ("");
+ mp_msg(MSGT_GLOBAL,MSGL_INFO, "ANS_VIDEO_CODEC='%s'\n", inf);
+ free (inf);
+ } break;
+
+ case MP_CMD_GET_VIDEO_BITRATE : {
+ char *inf = get_metadata (META_VIDEO_BITRATE);
+ if (!inf) inf = strdup ("");
+ mp_msg(MSGT_GLOBAL,MSGL_INFO, "ANS_VIDEO_BITRATE='%s'\n", inf);
+ free (inf);
+ } break;
+
+ case MP_CMD_GET_VIDEO_RESOLUTION : {
+ char *inf = get_metadata (META_VIDEO_RESOLUTION);
+ if (!inf) inf = strdup ("");
+ mp_msg(MSGT_GLOBAL,MSGL_INFO, "ANS_VIDEO_RESOLUTION='%s'\n", inf);
+ free (inf);
+ } break;
+
+ case MP_CMD_GET_AUDIO_CODEC : {
+ char *inf = get_metadata (META_AUDIO_CODEC);
+ if (!inf) inf = strdup ("");
+ mp_msg(MSGT_GLOBAL,MSGL_INFO, "ANS_AUDIO_CODEC='%s'\n", inf);
+ free (inf);
+ } break;
+
+ case MP_CMD_GET_AUDIO_BITRATE : {
+ char *inf = get_metadata (META_AUDIO_BITRATE);
+ if (!inf) inf = strdup ("");
+ mp_msg(MSGT_GLOBAL,MSGL_INFO, "ANS_AUDIO_BITRATE='%s'\n", inf);
+ free (inf);
+ } break;
+
+ case MP_CMD_GET_AUDIO_SAMPLES : {
+ char *inf = get_metadata (META_AUDIO_SAMPLES);
+ if (!inf) inf = strdup ("");
+ mp_msg(MSGT_GLOBAL,MSGL_INFO, "ANS_AUDIO_SAMPLES='%s'\n", inf);
+ free (inf);
+ } break;
+
+ case MP_CMD_GET_META_TITLE : {
+ char *inf = get_metadata (META_INFO_TITLE);
+ if (!inf) inf = strdup ("");
+ mp_msg(MSGT_GLOBAL,MSGL_INFO, "ANS_META_TITLE='%s'\n", inf);
+ free (inf);
+ } break;
+
+ case MP_CMD_GET_META_ARTIST : {
+ char *inf = get_metadata (META_INFO_ARTIST);
+ if (!inf) inf = strdup ("");
+ mp_msg(MSGT_GLOBAL,MSGL_INFO, "ANS_META_ARTIST='%s'\n", inf);
+ free (inf);
+ } break;
+
+ case MP_CMD_GET_META_ALBUM : {
+ char *inf = get_metadata (META_INFO_ALBUM);
+ if (!inf) inf = strdup ("");
+ mp_msg(MSGT_GLOBAL,MSGL_INFO, "ANS_META_ALBUM='%s'\n", inf);
+ free (inf);
+ } break;
+
+ case MP_CMD_GET_META_YEAR : {
+ char *inf = get_metadata (META_INFO_YEAR);
+ if (!inf) inf = strdup ("");
+ mp_msg(MSGT_GLOBAL,MSGL_INFO, "ANS_META_YEAR='%s'\n", inf);
+ free (inf);
+ } break;
+
+ case MP_CMD_GET_META_COMMENT : {
+ char *inf = get_metadata (META_INFO_COMMENT);
+ if (!inf) inf = strdup ("");
+ mp_msg(MSGT_GLOBAL,MSGL_INFO, "ANS_META_COMMENT='%s'\n", inf);
+ free (inf);
+ } break;
+
+ case MP_CMD_GET_META_TRACK : {
+ char *inf = get_metadata (META_INFO_TRACK);
+ if (!inf) inf = strdup ("");
+ mp_msg(MSGT_GLOBAL,MSGL_INFO, "ANS_META_TRACK='%s'\n", inf);
+ free (inf);
+ } break;
+
+ case MP_CMD_GET_META_GENRE : {
+ char *inf = get_metadata (META_INFO_GENRE);
+ if (!inf) inf = strdup ("");
+ mp_msg(MSGT_GLOBAL,MSGL_INFO, "ANS_META_GENRE='%s'\n", inf);
+ free (inf);
+ } break;
+
case MP_CMD_GET_VO_FULLSCREEN : {
if(video_out && vo_config_count)
mp_msg(MSGT_GLOBAL,MSGL_INFO, "ANS_VO_FULLSCREEN=%d\n", vo_fs);