From 2b07d3eb473edf3670f2277be872973da3831f28 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 28 Nov 2015 19:24:31 +0100 Subject: 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. --- sub/osd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sub/osd.c') diff --git a/sub/osd.c b/sub/osd.c index 93f188f09d..2d11b80cbb 100644 --- a/sub/osd.c +++ b/sub/osd.c @@ -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; -- cgit v1.2.3