spa: libcamera: source: remove SPA_VIDEO_FORMAT_UNKNOWN check

It is not used anywhere, so remove it.
This commit is contained in:
Barnabás Pőcze 2025-08-14 18:08:22 +02:00 committed by Wim Taymans
parent f4efb37b03
commit 207421cb7b

View file

@ -449,8 +449,7 @@ const struct format_info *find_format_info_by_media_type(
uint32_t type, uint32_t subtype, uint32_t format) uint32_t type, uint32_t subtype, uint32_t format)
{ {
for (const auto& f : format_info) { for (const auto& f : format_info) {
if (f.media_type == type && f.media_subtype == subtype if (f.media_type == type && f.media_subtype == subtype && f.format == format)
&& (f.format == SPA_VIDEO_FORMAT_UNKNOWN || f.format == format))
return &f; return &f;
} }