summaryrefslogtreecommitdiffstats
path: root/mpvcore/player/mp_core.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-15 13:43:26 +0100
committerwm4 <wm4@nowhere>2013-12-15 13:44:39 +0100
commit319405830996b2bc73e9cdf437e389f2045adafe (patch)
tree70095e57e72d584d2a1b97dcf64d423e7a019e9a /mpvcore/player/mp_core.h
parent4ca740ccf9314f77078e08f1923d86b060643aa5 (diff)
downloadmpv-319405830996b2bc73e9cdf437e389f2045adafe.tar.bz2
mpv-319405830996b2bc73e9cdf437e389f2045adafe.tar.xz
player: don't store subtitle renderer in osd_state
This doesn't have much value. It can't be accessed by anything else than the actual subtitle renderer (sd_ass.c). sd_ass.c could create the renderer itself, except that we apparently want to save memory (and some font loading time) when using ordered chapters or multiple subtitle tracks.
Diffstat (limited to 'mpvcore/player/mp_core.h')
-rw-r--r--mpvcore/player/mp_core.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/mpvcore/player/mp_core.h b/mpvcore/player/mp_core.h
index 9827387e2c..21ce0ba3cb 100644
--- a/mpvcore/player/mp_core.h
+++ b/mpvcore/player/mp_core.h
@@ -308,6 +308,11 @@ typedef struct MPContext {
int last_chapter_seek;
double last_chapter_pts;
+ /* Subtitle renderer. This is separate, because we want to keep fonts
+ * loaded across ordered chapters, instead of reloading and rescanning
+ * them on each transition. (Both of these objects contain this state.)
+ */
+ struct ass_renderer *ass_renderer;
struct ass_library *ass_library;
int last_dvb_step;