diff options
Diffstat (limited to 'sub')
-rw-r--r-- | sub/osd.c | 2 | ||||
-rw-r--r-- | sub/osd.h | 1 |
2 files changed, 1 insertions, 2 deletions
@@ -247,7 +247,7 @@ static void render_object(struct osd_state *osd, struct osd_object *obj, if (sub->render_bitmap_subs && sub->dec_sub) { double sub_pts = video_pts; if (sub_pts != MP_NOPTS_VALUE) - sub_pts -= sub->video_offset + opts->sub_delay; + sub_pts -= opts->sub_delay; sub_get_bitmaps(sub->dec_sub, obj->vo_res, sub_pts, out_imgs); } else { osd_object_get_bitmaps(osd, obj, out_imgs); @@ -153,7 +153,6 @@ void osd_set_text(struct osd_state *osd, int obj, const char *text); struct osd_sub_state { struct dec_sub *dec_sub; - double video_offset; bool render_bitmap_subs; }; void osd_set_sub(struct osd_state *osd, int obj, struct osd_sub_state *substate); |