mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-28 17:42:28 +08:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user