mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-23 06:59:58 -05:00
spa: libcamera: source: remove SPA_VIDEO_FORMAT_UNKNOWN check
It is not used anywhere, so remove it.
This commit is contained in:
parent
f4efb37b03
commit
207421cb7b
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue