mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-22 14:35:57 +01:00
screencast: update pipewire params on buffer change
This commit is contained in:
parent
f2d08cc5b5
commit
ac5c248340
1 changed files with 5 additions and 0 deletions
|
@ -127,6 +127,11 @@ static void wlr_frame_buffer_chparam(struct xdpw_screencast_instance *cast,
|
||||||
cast->simple_frame.size = stride * height;
|
cast->simple_frame.size = stride * height;
|
||||||
cast->simple_frame.format = format;
|
cast->simple_frame.format = format;
|
||||||
wlr_frame_buffer_destroy(cast);
|
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,
|
static void wlr_frame_linux_dmabuf(void *data,
|
||||||
|
|
Loading…
Reference in a new issue