summaryrefslogtreecommitdiffstats
path: root/sub/osd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sub/osd.c')
-rw-r--r--sub/osd.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sub/osd.c b/sub/osd.c
index 0d594cd24d..d2351b7213 100644
--- a/sub/osd.c
+++ b/sub/osd.c
@@ -273,12 +273,8 @@ static void render_object(struct osd_state *osd, struct osd_object *obj,
check_obj_resize(osd, res, obj);
if (obj->type == OSDTYPE_SUB || obj->type == OSDTYPE_SUB2) {
- if (obj->sub) {
- double sub_pts = video_pts;
- if (sub_pts != MP_NOPTS_VALUE)
- sub_pts -= opts->sub_delay;
- sub_get_bitmaps(obj->sub, obj->vo_res, format, sub_pts, out_imgs);
- }
+ if (obj->sub)
+ sub_get_bitmaps(obj->sub, obj->vo_res, format, video_pts, out_imgs);
} else if (obj->type == OSDTYPE_EXTERNAL2) {
if (obj->external2 && obj->external2->format) {
*out_imgs = *obj->external2;