1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 09:32:40 +00:00

vo_gpu_next: implement VOCTRL_EXTERNAL_RESIZE

This is only needed on Android and supposed to handle a context
resize without reconfiguring the image parameters. reconfig()
already does exactly this so plug it in there.
This commit is contained in:
sfan5 2021-12-19 01:39:48 +01:00
parent e79cd6227b
commit c8b6dc489b
2 changed files with 5 additions and 1 deletions

View File

@ -122,7 +122,7 @@ enum mp_voctrl {
VOCTRL_GET_HIDPI_SCALE, // double*
VOCTRL_GET_DISPLAY_RES, // int[2]
/* private to vo_gpu */
/* private to vo_gpu and vo_gpu_next */
VOCTRL_EXTERNAL_RESIZE,
};

View File

@ -1040,6 +1040,10 @@ static int control(struct vo *vo, uint32_t request, void *data)
case VOCTRL_SCREENSHOT:
video_screenshot(vo, data);
return true;
case VOCTRL_EXTERNAL_RESIZE:
reconfig(vo, NULL);
return true;
}
int events = 0;