mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-19 07:00:10 -05:00
improve props test
This commit is contained in:
parent
ded1ea69a1
commit
cf94117244
4 changed files with 92 additions and 75 deletions
|
|
@ -136,12 +136,6 @@ spa_type_media_subtype_audio_map(struct spa_type_map *map,
|
|||
}
|
||||
}
|
||||
|
||||
#define SPA_FORMAT_INIT(size,type,media_type,media_subtype,...) \
|
||||
{ { size, SPA_POD_TYPE_OBJECT }, \
|
||||
{ { 0, type }, \
|
||||
SPA_POD_ID_INIT(media_type), \
|
||||
SPA_POD_ID_INIT(media_subtype) } }
|
||||
|
||||
#define SPA_FORMAT_BODY_FOREACH(body, size, iter) \
|
||||
for ((iter) = SPA_MEMBER((body), sizeof(struct spa_format_body), struct spa_pod_prop); \
|
||||
(iter) < SPA_MEMBER((body), (size), struct spa_pod_prop); \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue