summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--video/out/vo_drm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/vo_drm.c b/video/out/vo_drm.c
index 07cd1a53a6..8262fce88d 100644
--- a/video/out/vo_drm.c
+++ b/video/out/vo_drm.c
@@ -295,6 +295,9 @@ static int reconfig(struct vo *vo, struct mp_image_params *params)
p->cur_frame_cropped = mp_image_new_dummy_ref(p->cur_frame);
mp_image_crop_rc(p->cur_frame_cropped, p->dst);
+ talloc_free(p->last_input);
+ p->last_input = NULL;
+
struct framebuffer *buf = p->bufs;
for (unsigned int i = 0; i < BUF_COUNT; i++)
memset(buf[i].map, 0, buf[i].size);