From 2414051d7618a2fd97e550c3d4439308993622df Mon Sep 17 00:00:00 2001 From: Matthias Hunstock Date: Fri, 25 Sep 2020 22:34:55 +0200 Subject: [PATCH] osd: show left arrow when playing backwards If playback direction is backwards, display a triangle pointing to the left as status symbol of OSD. --- player/osd.c | 2 ++ sub/osd.h | 1 + 2 files changed, 3 insertions(+) diff --git a/player/osd.c b/player/osd.c index 96ab287227..6c05933276 100644 --- a/player/osd.c +++ b/player/osd.c @@ -412,6 +412,8 @@ void get_current_osd_sym(struct MPContext *mpctx, char *buf, size_t buf_size) sym = OSD_CLOCK; } else if (mpctx->paused || mpctx->step_frames) { sym = OSD_PAUSE; + } else if (mpctx->play_dir < 0 ) { + sym = OSD_REV; } else { sym = OSD_PLAY; } diff --git a/sub/osd.h b/sub/osd.h index 2677847da5..bb3cbb378d 100644 --- a/sub/osd.h +++ b/sub/osd.h @@ -126,6 +126,7 @@ enum mp_osd_font_codepoints { OSD_BRIGHTNESS = 0x0A, OSD_HUE = 0x0B, OSD_BALANCE = 0x0C, + OSD_REV = 0x0D, OSD_PANSCAN = 0x50, OSD_PB_START = 0x10,