diff options
author | wm4 <wm4@nowhere> | 2015-11-28 19:24:31 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-11-28 19:24:31 +0100 |
commit | 2b07d3eb473edf3670f2277be872973da3831f28 (patch) | |
tree | abb75981f0a516dc8b773aa0854ebdc5adb73cc4 /sub/osd.c | |
parent | 73e0d545ceb4979c5d271eb2b86b4e4bdf4b69e9 (diff) | |
download | mpv-2b07d3eb473edf3670f2277be872973da3831f28.tar.bz2 mpv-2b07d3eb473edf3670f2277be872973da3831f28.tar.xz |
osd: use the same ASS_Renderer for OSD text and progbar
Reduces memory usage and startup times. The implementation is a bit
weird, because both OSD parts have conflicting requirements on the used
ASS styles.
Diffstat (limited to 'sub/osd.c')
-rw-r--r-- | sub/osd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -188,7 +188,7 @@ void osd_set_render_subs_in_filter(struct osd_state *osd, bool s) void osd_set_progbar(struct osd_state *osd, struct osd_progbar_state *s) { pthread_mutex_lock(&osd->lock); - struct osd_object *osd_obj = osd->objs[OSDTYPE_PROGBAR]; + struct osd_object *osd_obj = osd->objs[OSDTYPE_OSD]; osd_obj->progbar_state.type = s->type; osd_obj->progbar_state.value = s->value; osd_obj->progbar_state.num_stops = s->num_stops; |