mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-12-22 09:49:49 +01:00
pw: guard output in transform checks
This commit is contained in:
parent
4d9ff0c177
commit
7276435c46
1 changed files with 1 additions and 1 deletions
|
@ -457,7 +457,7 @@ void xdpw_pwr_enqueue_buffer(struct xdpw_screencast_instance *cast) {
|
|||
|
||||
struct spa_meta_videotransform *vt;
|
||||
if ((vt = spa_buffer_find_meta_data(spa_buf, SPA_META_VideoTransform, sizeof(*vt)))) {
|
||||
vt->transform = cast->target.output->transform;
|
||||
vt->transform = cast->target.output ? cast->target.output->transform : 0;
|
||||
logprint(TRACE, "pipewire: transform %u", vt->transform);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue