summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorAnton Kindestam <antonki@kth.se>2019-09-29 12:16:26 +0200
committerAnton Kindestam <antonki@kth.se>2019-09-29 12:16:26 +0200
commit0d4f165d8182ef08521044df82dc56a673cef322 (patch)
treeb1802193f1dfc46da7231ba152111f383ae5a451 /video
parent5a9046222b69c029586d8159ab551ea5283d9e47 (diff)
downloadmpv-0d4f165d8182ef08521044df82dc56a673cef322.tar.bz2
mpv-0d4f165d8182ef08521044df82dc56a673cef322.tar.xz
vo_drm: fix flickering when setting pan/scan
Turns out clearing all frambuffers in reconfig isn't such a great idea when you also end up here when setting pan/scan. I guess this is just a leftover from a previous iteration of vo_drm where doing this made sense.
Diffstat (limited to 'video')
-rw-r--r--video/out/vo_drm.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/video/out/vo_drm.c b/video/out/vo_drm.c
index 4a7caa558e..ce48779a82 100644
--- a/video/out/vo_drm.c
+++ b/video/out/vo_drm.c
@@ -327,10 +327,6 @@ static int reconfig(struct vo *vo, struct mp_image_params *params)
talloc_free(p->last_input);
p->last_input = NULL;
- struct framebuffer *buf = p->bufs;
- for (unsigned int i = 0; i < p->buf_count; i++)
- memset(buf[i].map, 0, buf[i].size);
-
if (mp_sws_reinit(p->sws) < 0)
return -1;