diff options
author | wm4 <wm4@nowhere> | 2014-01-13 19:46:16 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-01-15 20:53:44 +0100 |
commit | 49cf0af2949619cd4e7180e306acef6247d070ab (patch) | |
tree | 6a46ffc3ab92120322f9f23d3c9796b5e7f78c15 | |
parent | 1b268747104236f989e25f45ec8cc7fbc0c228e0 (diff) | |
download | mpv-49cf0af2949619cd4e7180e306acef6247d070ab.tar.bz2 mpv-49cf0af2949619cd4e7180e306acef6247d070ab.tar.xz |
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.
-rw-r--r-- | player/osd.c | 9 |
1 files changed, 6 insertions, 3 deletions
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)); |