diff options
author | wm4 <wm4@nowhere> | 2016-03-08 20:49:33 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-03-08 21:59:55 +0100 |
commit | f5bfe01932b2895ad9b9faa8c04d8a1466dbeeb0 (patch) | |
tree | c29722a35a9b444b7677a0d8aa968979123736d8 /sub/dec_sub.c | |
parent | 87ae215853d3e5c6d691803907d3827b3ee88a06 (diff) | |
download | mpv-f5bfe01932b2895ad9b9faa8c04d8a1466dbeeb0.tar.bz2 mpv-f5bfe01932b2895ad9b9faa8c04d8a1466dbeeb0.tar.xz |
osd: refactor how mp_ass_render_frame() is called
Instead of passing an explicit cache to the function, the res parameter
is used. Also, instead of replacing its contents, sub bitmaps are now
appended to it (all assuming the format doesn't actually change).
This is preparation for the following commits.
Diffstat (limited to 'sub/dec_sub.c')
-rw-r--r-- | sub/dec_sub.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sub/dec_sub.c b/sub/dec_sub.c index be55fc0906..b6672348a5 100644 --- a/sub/dec_sub.c +++ b/sub/dec_sub.c @@ -252,8 +252,6 @@ void sub_get_bitmaps(struct dec_sub *sub, struct mp_osd_res dim, double pts, { struct MPOpts *opts = sub->opts; - *res = (struct sub_bitmaps) {0}; - sub->last_vo_pts = pts; update_segment(sub); |