Skip to content

Commit

Permalink
pw: guard output in transform checks
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Jul 20, 2023
1 parent 4d9ff0c commit 7276435
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/screencast/pipewire_screencast.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 7276435

Please sign in to comment.