diff options
author | akemi-san <null> | 2015-04-26 15:06:52 +1000 |
---|---|---|
committer | Diogo Franco (Kovensky) <diogomfranco@gmail.com> | 2015-04-28 08:33:36 +0900 |
commit | e8f8d3462e118210d4c2e54dadc44e27b5947257 (patch) | |
tree | ee3452bee136b09809eff457bb35db1f4e3311c8 | |
parent | 7669fe39f67031deea7f5f3ee2610346a9531716 (diff) | |
download | mpv-e8f8d3462e118210d4c2e54dadc44e27b5947257.tar.bz2 mpv-e8f8d3462e118210d4c2e54dadc44e27b5947257.tar.xz |
vo_drm: zero screen buffers in reconfig function.
(cherry picked from commit 1e2e5043496aaf55c29e89289582f9fbf8001f8c)
-rw-r--r-- | video/out/vo_drm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/vo_drm.c b/video/out/vo_drm.c index b67e1b1a52..71c73bd6f8 100644 --- a/video/out/vo_drm.c +++ b/video/out/vo_drm.c @@ -475,6 +475,10 @@ static int reconfig(struct vo *vo, struct mp_image_params *params, int flags) mp_image_params_guess_csp(&p->sws->dst); mp_image_set_params(p->cur_frame, &p->sws->dst); + struct modeset_buf *buf = p->dev->bufs; + memset(buf[0].map, 0, buf[0].size); + memset(buf[1].map, 0, buf[1].size); + if (mp_sws_reinit(p->sws) < 0) return -1; |