From 42c3a300082f5dfbbd09818d149331ff45fd5892 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 24 Oct 2011 02:41:17 +0200 Subject: commands: add show_tracks_osd command to display audio and subtitle tracks on OSD The command lists the audio and subtitle tracks in the current file on the OSD. It also marks the currently active streams. Video streams are not shown, as files with more than one video stream are exceedingly rare. --- input/input.c | 1 + input/input.h | 1 + 2 files changed, 2 insertions(+) (limited to 'input') diff --git a/input/input.c b/input/input.c index f99c3218dc..014216e093 100644 --- a/input/input.c +++ b/input/input.c @@ -223,6 +223,7 @@ static const mp_cmd_t mp_cmds[] = { { MP_CMD_AF_CMDLINE, "af_cmdline", { ARG_STRING, ARG_STRING } }, { MP_CMD_SHOW_CHAPTERS, "show_chapters_osd", }, + { MP_CMD_SHOW_TRACKS, "show_tracks_osd", }, {0} }; diff --git a/input/input.h b/input/input.h index 9bbf6bf7df..977901b6d3 100644 --- a/input/input.h +++ b/input/input.h @@ -155,6 +155,7 @@ enum mp_command_type { MP_CMD_AF_CMDLINE, MP_CMD_SHOW_CHAPTERS, + MP_CMD_SHOW_TRACKS, }; // The arg types -- cgit v1.2.3