summaryrefslogtreecommitdiffstats
path: root/sub/osd_state.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-03-08 20:49:33 +0100
committerwm4 <wm4@nowhere>2016-03-08 21:59:55 +0100
commitf5bfe01932b2895ad9b9faa8c04d8a1466dbeeb0 (patch)
treec29722a35a9b444b7677a0d8aa968979123736d8 /sub/osd_state.h
parent87ae215853d3e5c6d691803907d3827b3ee88a06 (diff)
downloadmpv-f5bfe01932b2895ad9b9faa8c04d8a1466dbeeb0.tar.bz2
mpv-f5bfe01932b2895ad9b9faa8c04d8a1466dbeeb0.tar.xz
osd: refactor how mp_ass_render_frame() is called
Instead of passing an explicit cache to the function, the res parameter is used. Also, instead of replacing its contents, sub bitmaps are now appended to it (all assuming the format doesn't actually change). This is preparation for the following commits.
Diffstat (limited to 'sub/osd_state.h')
-rw-r--r--sub/osd_state.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sub/osd_state.h b/sub/osd_state.h
index 30f04d8449..9ef8458f0d 100644
--- a/sub/osd_state.h
+++ b/sub/osd_state.h
@@ -37,7 +37,7 @@ struct osd_object {
struct mp_osd_res vo_res;
// Internally used by osd_libass.c
- struct sub_bitmap *parts_cache;
+ struct sub_bitmaps parts_cache;
struct ass_track *osd_track;
struct ass_renderer *osd_render;
struct ass_library *osd_ass_library;