mirror of https://github.com/mpv-player/mpv
vo_wlshm: properly support video panscan
Turns out it was already doing this under the hood the entire time. The only catch is that the vo just needed a resize.
This commit is contained in:
parent
6471afecd0
commit
4beb1bcae7
|
@ -209,6 +209,12 @@ static int resize(struct vo *vo)
|
|||
|
||||
static int control(struct vo *vo, uint32_t request, void *data)
|
||||
{
|
||||
switch (request) {
|
||||
case VOCTRL_SET_PANSCAN:
|
||||
resize(vo);
|
||||
return VO_TRUE;
|
||||
}
|
||||
|
||||
int events = 0;
|
||||
int ret = vo_wayland_control(vo, &events, request, data);
|
||||
|
||||
|
|
Loading…
Reference in New Issue