osd: show left arrow when playing backwards

If playback direction is backwards, display a triangle
pointing to the left as status symbol of OSD.
This commit is contained in:
Matthias Hunstock 2020-09-25 22:34:55 +02:00
parent d2380b13f9
commit 37bfa7052f
2 changed files with 3 additions and 0 deletions

View File

@ -421,6 +421,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;
}

View File

@ -124,6 +124,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,