1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-14 02:46:59 +00:00

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 committed by Kacper Michajłow
parent 5631d83b5f
commit 2414051d76
2 changed files with 3 additions and 0 deletions

View File

@ -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;
}

View File

@ -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,