mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
format: make helper function to parse media type
This commit is contained in:
parent
5976beb149
commit
80de83f38a
24 changed files with 127 additions and 100 deletions
|
|
@ -544,9 +544,8 @@ spa_v4l2_enum_format(struct impl *this,
|
|||
}
|
||||
|
||||
if (filter) {
|
||||
spa_pod_object_parse(filter,
|
||||
"I", &filter_media_type,
|
||||
"I", &filter_media_subtype);
|
||||
if ((res = spa_format_parse(filter, &filter_media_type, &filter_media_subtype)) < 0)
|
||||
return res;
|
||||
}
|
||||
|
||||
if (false) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue