mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user