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.
This commit is contained in:
tytan652
2025-10-31 07:16:32 +01:00
committed by Ryan Foster
parent e73662f6c1
commit 0d1f61b04b
+1 -5
View File
@@ -649,7 +649,6 @@ static bool 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;
@@ -674,10 +673,7 @@ static bool 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,