Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions plugins/linux-pipewire/camera-portal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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,
Expand Down