From 454fc559a27cd8ce2cc8a40a1e06ed862e6c6aee Mon Sep 17 00:00:00 2001 From: Kurt Kartaltepe Date: Sat, 21 Oct 2023 14:08:34 -0700 Subject: [PATCH] linux-pipewire: Use the format properties for swap r/b We refactored this data to be part of the format properties instead of an out parameter. But forgot to start using this field instead. --- plugins/linux-pipewire/pipewire.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/linux-pipewire/pipewire.c b/plugins/linux-pipewire/pipewire.c index 8b01357f3..cb4dc8b99 100644 --- a/plugins/linux-pipewire/pipewire.c +++ b/plugins/linux-pipewire/pipewire.c @@ -782,7 +782,6 @@ static void process_video_sync(obs_pipewire_stream *obs_pw_stream) struct format_data format_data; struct spa_buffer *buffer; struct pw_buffer *b; - bool swap_red_blue = false; bool has_buffer = true; b = find_latest_buffer(obs_pw_stream->stream); @@ -907,7 +906,7 @@ static void process_video_sync(obs_pipewire_stream *obs_pw_stream) (const uint8_t **)&buffer->datas[0].data, GS_DYNAMIC); } - if (swap_red_blue) + if (format_data.swap_red_blue) swap_texture_red_blue(obs_pw_stream->texture); /* Video Crop */ @@ -977,7 +976,7 @@ read_metadata: format_data.gs_format, 1, &bitmap_data, GS_DYNAMIC); - if (swap_red_blue) + if (format_data.swap_red_blue) swap_texture_red_blue( obs_pw_stream->cursor.texture); }