diff options
author | wm4 <wm4@nowhere> | 2012-08-07 02:12:15 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-08-07 02:15:27 +0200 |
commit | 7484ae8e2ee5327400358e7c7cb974d84543aef6 (patch) | |
tree | e93ae04b40b0bf7e686ed61e25b6a056b8ba57f6 /sub/sub.h | |
parent | 0268b1a44562ea5310491fbcbb987d5462f42ca5 (diff) | |
download | mpv-7484ae8e2ee5327400358e7c7cb974d84543aef6.tar.bz2 mpv-7484ae8e2ee5327400358e7c7cb974d84543aef6.tar.xz |
osd_libass: allocate separate ASS_Library for OSD
osd_libass.c used the same ASS_Library object as the player core. This
caused a problem: when playing a new file, all fonts loaded by the
ASS_Library object were unloaded, including the OSD font. Parts of the
OSD would stop being rendered correctly.
Solve this by creating a separate ASS_Library, with its own set of
fonts.
Diffstat (limited to 'sub/sub.h')
-rw-r--r-- | sub/sub.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -161,7 +161,7 @@ void osd_draw_text_ext(struct osd_state *osd, int dxs, int dys, int stride), void *ctx); -struct osd_state *osd_create(struct MPOpts *opts, struct ass_library *asslib); +struct osd_state *osd_create(struct MPOpts *opts); void osd_set_text(struct osd_state *osd, const char *text); int osd_update(struct osd_state *osd, int dxs, int dys); void vo_osd_changed(int new_value); |