summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-07-30 18:47:01 +0200
committerwm4 <wm4@nowhere>2012-07-30 22:14:32 +0200
commit4f86c0a3a46a6f638b1446aa080a594040143ddf (patch)
tree6f5fe4b894013aa5a65e15c1c6dd9a9c836b42dc
parent1fde09db6f4cee7347842261234082470dd3a2ca (diff)
downloadmpv-4f86c0a3a46a6f638b1446aa080a594040143ddf.tar.bz2
mpv-4f86c0a3a46a6f638b1446aa080a594040143ddf.tar.xz
mplayer: status line: better indication whether audio/video is active
-rw-r--r--mplayer.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/mplayer.c b/mplayer.c
index 261fbea109..111a65c5f4 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -1119,6 +1119,12 @@ static void print_status(struct MPContext *mpctx, double a_pos, bool at_frame)
line = malloc(width + 1); // one additional char for the terminating null
// Playback position
+ if (mpctx->sh_audio)
+ saddf(line, &pos, width, "A");
+ if (mpctx->sh_video)
+ saddf(line, &pos, width, "V");
+ saddf(line, &pos, width, ":");
+
double cur = MP_NOPTS_VALUE;
if (mpctx->sh_audio && a_pos != MP_NOPTS_VALUE) {
cur = a_pos;
@@ -1126,12 +1132,12 @@ static void print_status(struct MPContext *mpctx, double a_pos, bool at_frame)
cur = mpctx->video_pts;
}
if (cur != MP_NOPTS_VALUE) {
- saddf(line, &pos, width, "T:%6.1f ", cur);
+ saddf(line, &pos, width, "%6.1f ", cur);
saddf(line, &pos, width, "(");
sadd_hhmmssf(line, &pos, width, cur);
saddf(line, &pos, width, ") ");
} else
- saddf(line, &pos, width, "T: ??? ");
+ saddf(line, &pos, width, " ??? ");
double len = get_time_length(mpctx);
if (len >= 0) {