summaryrefslogtreecommitdiffstats
path: root/sub/osd.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-11-28 19:24:31 +0100
committerwm4 <wm4@nowhere>2015-11-28 19:24:31 +0100
commit2b07d3eb473edf3670f2277be872973da3831f28 (patch)
treeabb75981f0a516dc8b773aa0854ebdc5adb73cc4 /sub/osd.c
parent73e0d545ceb4979c5d271eb2b86b4e4bdf4b69e9 (diff)
downloadmpv-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.c2
1 files changed, 1 insertions, 1 deletions
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;