summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-08 22:37:45 +0200
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-05-09 21:15:26 +0900
commit0d9275b931f997746f90c754de0b3376577fa7e1 (patch)
treef5db2f002ac3a8433f81ab79d69a3df9f9f20190
parentb2f44f131fe5de61ba0cdafc4b0bb6749720b9b3 (diff)
downloadmpv-0d9275b931f997746f90c754de0b3376577fa7e1.tar.bz2
mpv-0d9275b931f997746f90c754de0b3376577fa7e1.tar.xz
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. (cherry picked from commit 56310605690288f44c49363413e68f7c73325ed1)
-rw-r--r--video/out/vo_drm.c6
1 files changed, 6 insertions, 0 deletions
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;
}