From 56310605690288f44c49363413e68f7c73325ed1 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 8 May 2015 22:37:45 +0200 Subject: vo_drm: allow changing video rectangle settings Now among other things panscan can be changed during playback. Unfortunately, it flickers. The issue is that reconfig() clears the framebuffer. Removing the clearing shows that the "unused" parts of the picture are not cleared - even though OSD could render there. As such, this is a separate issue. --- video/out/vo_drm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/video/out/vo_drm.c b/video/out/vo_drm.c index b8f6e1cffe..9ef371eb0d 100644 --- a/video/out/vo_drm.c +++ b/video/out/vo_drm.c @@ -618,6 +618,12 @@ static int control(struct vo *vo, uint32_t request, void *data) case VOCTRL_REDRAW_FRAME: draw_image(vo, p->last_input); return VO_TRUE; + case VOCTRL_GET_PANSCAN: + return VO_TRUE; + case VOCTRL_SET_PANSCAN: + if (vo->config_ok) + reconfig(vo, vo->params, 0); + return VO_TRUE; } return VO_NOTIMPL; } -- cgit v1.2.3