Skip to content

Commit 0d1f61b

Browse files
tytan652RytoEX
authored andcommitted
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.
1 parent e73662f commit 0d1f61b

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

plugins/linux-pipewire/camera-portal.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,6 @@ static bool framerate_list(struct camera_device *dev, uint32_t pixelformat, cons
649649
spa_list_for_each(p, &dev->param_list, link)
650650
{
651651
const struct spa_fraction *framerate_values;
652-
struct obs_pw_video_format obs_pw_video_format;
653652
enum spa_choice_type choice;
654653
const struct spa_pod_prop *prop;
655654
struct spa_rectangle this_resolution;
@@ -674,10 +673,7 @@ static bool framerate_list(struct camera_device *dev, uint32_t pixelformat, cons
674673
format = SPA_VIDEO_FORMAT_ENCODED;
675674
}
676675

677-
if (!obs_pw_video_format_from_spa_format(format, &obs_pw_video_format))
678-
continue;
679-
680-
if (obs_pw_video_format.video_format != pixelformat)
676+
if (format != pixelformat)
681677
continue;
682678

683679
if (spa_pod_parse_object(p->param, SPA_TYPE_OBJECT_Format, NULL, SPA_FORMAT_VIDEO_size,

0 commit comments

Comments
 (0)