1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-25 04:38:01 +00:00
mpv/player
wm4 9c9cf125ad osd: slightly simplify update logic
Remove the per-part force_redraw flags, and instead make the difference
between flagging dirty state and returning it to the player frontend
more explicit. The big issue is that 1. the OSD needs to know the dirty
state, and it should be cleared strictly when it is re-rendered
(force_redraw flag), and 2. the player core needs to be notified once,
and the notification must be reset (want_redraw flag).

The call in loadfile.c is replaced by making osd_set_sub() set the
change flag. Increasing the change flag on dirty state (the force_redraw
check in render_object()) should not be needed, because OSD part
renderers set it correctly (at least now).

Doing this just because someone pointed this out.
2016-09-15 14:50:38 +02:00
..
lua ytdl_hook: don't bother adding subtitles if duration isn't known 2016-09-13 09:23:00 +02:00
audio.c audio/out: deprecate "exclusive" sub-options 2016-09-05 21:26:39 +02:00
client.c client API: don't miss property changes after updates 2016-09-11 23:58:23 +10:00
client.h client API: add stream_cb API for user-defined stream implementations 2016-08-07 19:33:20 +02:00
command.c osd: slightly simplify update logic 2016-09-15 14:50:38 +02:00
command.h command: add options to property list 2016-09-01 20:00:43 +02:00
configfiles.c player: Save sub-speed value when resuming playback 2016-09-13 09:23:28 +02:00
core.h stream, demux, config: remove some dead/unneeded option-related code 2016-09-09 17:54:57 +02:00
external_files.c ta: remove old and redundant macro 2016-05-17 10:53:14 +02:00
external_files.h player: rename and move find_subfiles.c 2015-09-20 18:05:06 +02:00
lavfi.c lavfi: shut up false positive compiler warnings 2016-04-26 19:38:51 +02:00
lavfi.h player: add complex filter graph support 2016-02-05 23:19:56 +01:00
loadfile.c osd: slightly simplify update logic 2016-09-15 14:50:38 +02:00
lua.c osd: cleanup: make OSDTYPE_ constants private to OSD code 2016-03-08 22:01:57 +01:00
main.c player: move builtin profiles to a separate file 2016-09-15 14:50:38 +02:00
misc.c stream, demux, config: remove some dead/unneeded option-related code 2016-09-09 17:54:57 +02:00
osd.c player: add option to disable video OSD 2016-08-28 18:26:59 +02:00
playloop.c client API: implement mpv_suspend/resume slightly differently 2016-09-04 18:05:36 +02:00
screenshot.c video: refactor how VO exports hwdec device handles 2016-05-09 20:03:22 +02:00
screenshot.h Relicense some non-MPlayer source files to LGPL 2.1 or later 2016-01-19 18:36:06 +01:00
scripting.c Relicense some non-MPlayer source files to LGPL 2.1 or later 2016-01-19 18:36:06 +01:00
sub.c osd: cleanup: make OSDTYPE_ constants private to OSD code 2016-03-08 22:01:57 +01:00
video.c player: fix average frame duration calculation 2016-09-09 19:18:08 +02:00