screencast: update pipewire params on buffer change

This commit is contained in:
columbarius 2020-08-14 02:03:29 +02:00 committed by Simon Ser
parent f2d08cc5b5
commit ac5c248340
1 changed files with 5 additions and 0 deletions

View File

@ -127,6 +127,11 @@ static void wlr_frame_buffer_chparam(struct xdpw_screencast_instance *cast,
cast->simple_frame.size = stride * height;
cast->simple_frame.format = format;
wlr_frame_buffer_destroy(cast);
if (cast->pwr_stream_state) {
logprint(DEBUG, "wlroots: request pipewire param change");
pwr_update_stream_param(cast);
}
}
static void wlr_frame_linux_dmabuf(void *data,