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.
This commit is contained in:
wm4
2015-11-28 19:24:31 +01:00
parent 73e0d545ce
commit 2b07d3eb47
4 changed files with 43 additions and 32 deletions

View File

@@ -16,7 +16,7 @@ struct osd_object {
// OSDTYPE_SUB/OSDTYPE_SUB2/OSDTYPE_OSD/OSDTYPE_EXTERNAL
char *text;
// OSDTYPE_PROGBAR
// OSDTYPE_OSD
struct osd_progbar_state progbar_state;
// OSDTYPE_SUB/OSDTYPE_SUB2