1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-05 14:42:24 +00:00
mpv/sub
wm4 168293e0ae osd: minor simplification of vo_osd_changed()
vo_osd_changed() was a weird function: it was used both to query and
mutate state, which is a bad combination. The VOs used it to query
and reset the state, and the mplayer frontend mostly used it to set
the state. In some cases, the frontend did both (that code used a
variable "int hack" to backup the state and set it again).

Simplify it and make the VOs use a vo_osd_has_changed() function to
query whether the OSD bitmaps have to be recreated. vo_osd_changed()
on the other hand is now used to update state only. The OSD change
state is reset when osd_draw_text() is called.

Update vo_corevideo.m to use vo_osd_resized() as well (forgotten change
from libass-OSD merge).

Simplify osd_set_text() and its usages.
2012-08-01 18:23:28 +02:00
..
ass_mp.c ass_mp.c: remap libass log levels 2012-07-30 01:49:35 +02:00
ass_mp.h options: move libass-related options to struct 2011-09-03 14:26:14 +03:00
av_sub.c Update Libav API uses 2012-02-01 22:46:27 +02:00
av_sub.h
dec_sub.c
dec_sub.h
find_sub.c
find_subfiles.c sub: silence output of subtitle search message 2012-07-30 01:45:07 +02:00
find_subfiles.h subs: options: add -sub-paths 2011-04-20 04:22:52 +03:00
osd_dummy.c osd: remove freetype font rendering code 2012-07-28 23:36:08 +02:00
osd_font.pfb osd: osd_font.h -> osd_font.pfb 2012-07-28 23:36:08 +02:00
osd_libass.c osd: osd_font.h -> osd_font.pfb 2012-07-28 23:36:08 +02:00
sd_ass.c sd_ass.c: set event->Style to fix --ass-styles 2011-09-23 13:57:11 +03:00
sd.h
spudec.c Remove dead code 2012-08-01 17:07:35 +02:00
spudec.h Remove dead code 2012-08-01 17:07:35 +02:00
sub.c osd: minor simplification of vo_osd_changed() 2012-08-01 18:23:28 +02:00
sub.h osd: minor simplification of vo_osd_changed() 2012-08-01 18:23:28 +02:00
subassconvert.c bstr: rename bstr() function to bstr0(), and typedef bstr to struct bstr 2012-07-28 23:47:42 +02:00
subassconvert.h
subreader.c Remove dead code 2012-08-01 17:07:35 +02:00
subreader.h Remove dead code 2012-08-01 17:07:35 +02:00
vobsub.c Remove dead code 2012-08-01 17:07:35 +02:00
vobsub.h Remove dead code 2012-08-01 17:07:35 +02:00