diff options
author | wm4 <wm4@nowhere> | 2012-08-26 01:45:56 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-09-18 21:04:45 +0200 |
commit | 5984d702c6a7ab4371a680bcdb64b3038212fc2a (patch) | |
tree | 448b5ae26b76f833fed5ffa4449f2631a4c0db2c /mplayer.c | |
parent | 88728c6fad99fe6c9cc0b77f95c46d6919f0693a (diff) | |
download | mpv-5984d702c6a7ab4371a680bcdb64b3038212fc2a.tar.bz2 mpv-5984d702c6a7ab4371a680bcdb64b3038212fc2a.tar.xz |
mplayer: don't clear OSD when new file is played
When switching editions, it would be nice to display an OSD message to
notify the user which edition is being played. This would be consistent
with visual feedback like on tracking switching, seeking, and so on.
Rather than introducing awkward hacks and special cases to determine
whether a file is being "restarted" (as it happens on edition switching)
to avoid clearing the OSD messages, simply never clear the OSD stack.
This is more consistent with handling of OSD bars too: they didn't
disappear when going to a new file (especially noticable when seeking
past the end of the file).
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 19 |
1 files changed, 0 insertions, 19 deletions
@@ -1340,22 +1340,6 @@ void rm_osd_msg(struct MPContext *mpctx, int id) } /** - * \brief Remove all messages from the OSD stack - * - */ - -static void clear_osd_msgs(struct MPContext *mpctx) -{ - mp_osd_msg_t *msg = mpctx->osd_msg_stack, *prev = NULL; - while (msg) { - prev = msg->prev; - talloc_free(msg); - msg = prev; - } - mpctx->osd_msg_stack = NULL; -} - -/** * \brief Get the current message from the OSD stack. * * This function decrements the message timer and destroys the old ones. @@ -3877,9 +3861,6 @@ goto_enable_cache: if (verbose) opts->term_osd = 0; - // Make sure old OSD does not stay around - clear_osd_msgs(mpctx); - //================ SETUP STREAMS ========================== if (mpctx->sh_video) { |