diff options
author | wm4 <wm4@nowhere> | 2015-12-26 18:35:36 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-12-26 18:35:36 +0100 |
commit | 190dea149aea07bc4be41c684a50db4231ccb0da (patch) | |
tree | b4c164a1c741dd6c2283b3559d3b807b2ca8c226 /sub/sd.h | |
parent | 8d4a179c144cb3e36762b2c3cef55d1d3bb9f951 (diff) | |
download | mpv-190dea149aea07bc4be41c684a50db4231ccb0da.tar.bz2 mpv-190dea149aea07bc4be41c684a50db4231ccb0da.tar.xz |
sub: destroy/recreate ASS_Renderer when disabling/enablings subs
Keeping ASS_Renderers around for a potentially large number of subtitle
tracks could lead to excessive memory usage, especially since the libass
cache is broken (caches even unneeded data), and might consume up to
~500MB of memory for no reason.
Diffstat (limited to 'sub/sd.h')
-rw-r--r-- | sub/sd.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -29,6 +29,7 @@ struct sd_functions { int (*init)(struct sd *sd); void (*decode)(struct sd *sd, struct demux_packet *packet); void (*reset)(struct sd *sd); + void (*select)(struct sd *sd, bool selected); void (*uninit)(struct sd *sd); bool (*accepts_packet)(struct sd *sd); // implicit default if NULL: true |