summaryrefslogtreecommitdiffstats
path: root/video/out/vo_rpi.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/vo_rpi.c')
-rw-r--r--video/out/vo_rpi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/vo_rpi.c b/video/out/vo_rpi.c
index 4d5de1d84d..8d921e83e3 100644
--- a/video/out/vo_rpi.c
+++ b/video/out/vo_rpi.c
@@ -748,6 +748,10 @@ static int control(struct vo *vo, uint32_t request, void *data)
case VOCTRL_GET_DISPLAY_FPS:
*(double *)data = p->display_fps;
return VO_TRUE;
+ case VOCTRL_GET_DISPLAY_RES:
+ ((int *)arg)[0] = p->w;
+ ((int *)arg)[1] = p->h;
+ return VO_TRUE;
}
return VO_NOTIMPL;