vo_drm: zero screen buffers in reconfig function.

This commit is contained in:
akemi-san 2015-04-26 15:06:52 +10:00 committed by wm4
parent 5f21a68ce9
commit 1e2e504349
1 changed files with 4 additions and 0 deletions

View File

@ -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;