From 916af389f9e6571674132361d541b5cf77e43b9d Mon Sep 17 00:00:00 2001 From: tytan652 Date: Fri, 31 Oct 2025 07:16:32 +0100 Subject: [PATCH] linux-pipewire: Fix camera framerate listing The SPA format (pixelformat) was compared with a libobs video format value. Also removes the SPA format support check since at this point it already has been done while listing formats. --- plugins/linux-pipewire/camera-portal.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/plugins/linux-pipewire/camera-portal.c b/plugins/linux-pipewire/camera-portal.c index a6a9f1a52ddfb0..cee14b609e16ba 100644 --- a/plugins/linux-pipewire/camera-portal.c +++ b/plugins/linux-pipewire/camera-portal.c @@ -647,7 +647,6 @@ static void framerate_list(struct camera_device *dev, uint32_t pixelformat, cons spa_list_for_each(p, &dev->param_list, link) { const struct spa_fraction *framerate_values; - struct obs_pw_video_format obs_pw_video_format; enum spa_choice_type choice; const struct spa_pod_prop *prop; struct spa_rectangle this_resolution; @@ -672,10 +671,7 @@ static void framerate_list(struct camera_device *dev, uint32_t pixelformat, cons format = SPA_VIDEO_FORMAT_ENCODED; } - if (!obs_pw_video_format_from_spa_format(format, &obs_pw_video_format)) - continue; - - if (obs_pw_video_format.video_format != pixelformat) + if (format != pixelformat) continue; if (spa_pod_parse_object(p->param, SPA_TYPE_OBJECT_Format, NULL, SPA_FORMAT_VIDEO_size,