From 8721f9151fe1f6aaf37bef7749dc57d9417a6dd9 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 13 Jan 2014 19:46:16 +0100 Subject: player: don't block terminal OSD while seeking Seeking usually show the status on OSD. In terminal OSD mode, no status is shown, because there is already a separate status line. Unfortunately, the mechanism for showing the status was still active, which forced showing no message while the code for showing seek status was active. --- player/osd.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'player') diff --git a/player/osd.c b/player/osd.c index 70c1a0ddaf..93340d78c2 100644 --- a/player/osd.c +++ b/player/osd.c @@ -435,9 +435,12 @@ static void add_seek_osd_messages(struct MPContext *mpctx) set_osd_bar_chapters(mpctx, OSD_BAR_SEEK); } if (mpctx->add_osd_seek_info & OSD_SEEK_INFO_TEXT) { - mp_osd_msg_t *msg = add_osd_msg(mpctx, OSD_MSG_TEXT, 1, - mpctx->opts->osd_duration); - msg->show_position = true; + // Never in term-osd mode + if (mpctx->video_out && mpctx->opts->term_osd != 1) { + mp_osd_msg_t *msg = add_osd_msg(mpctx, OSD_MSG_TEXT, 1, + mpctx->opts->osd_duration); + msg->show_position = true; + } } if (mpctx->add_osd_seek_info & OSD_SEEK_INFO_CHAPTER_TEXT) { char *chapter = chapter_display_name(mpctx, get_current_chapter(mpctx)); -- cgit v1.2.3