OSD/commands: use osdlevel=3 for osd_show_progression command
commit458001463b2252fc56f2e87d4348708ec46d6777
authorUoti Urpala <uau@mplayer2.org>
Tue, 21 Aug 2012 21:12:12 +0000 (22 00:12 +0300)
committerUoti Urpala <uau@mplayer2.org>
Mon, 27 Aug 2012 21:12:59 +0000 (28 00:12 +0300)
tree4ec4a23a717947b16165e5724e4d6424e253f560
parent37c124805c00ae0f2570c95f9543e39ce69793a6
OSD/commands: use osdlevel=3 for osd_show_progression command

The osd_show_progression command ('P' key) created text similar to
what --osdlevel=3 shows, and set that as an OSD message. This message
was static and wasn't updated while visible, even if video position
changed (very noticeable during fast forward, when real OSD position
changes rapidly). Instead of setting a static message, create a new
message type that makes the OSD update code behave as if osd level was
set to 3 for the duration of the message. This also avoids having a
duplicated version of the position text formatting logic.
command.c
mp_osd.h
mplayer.c