mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
uri -> type
Clean up some more types.
This commit is contained in:
parent
5825c62d6d
commit
25b7ede0bc
46 changed files with 276 additions and 256 deletions
|
|
@ -33,13 +33,13 @@ spa_format_audio_parse (const SpaFormat *format,
|
|||
static SpaTypeMediaType media_type = { 0, };
|
||||
static SpaTypeMediaSubtype media_subtype = { 0, };
|
||||
static SpaTypeMediaSubtypeAudio media_subtype_audio = { 0, };
|
||||
static SpaTypePropAudio prop_audio = { 0, };
|
||||
static SpaTypeFormatAudio format_audio = { 0, };
|
||||
SpaTypeMap *map = spa_type_map_get_default();
|
||||
|
||||
spa_type_media_type_map (map, &media_type);
|
||||
spa_type_media_subtype_map (map, &media_subtype);
|
||||
spa_type_media_subtype_audio_map (map, &media_subtype_audio);
|
||||
spa_type_prop_audio_map (map, &prop_audio);
|
||||
spa_type_format_audio_map (map, &format_audio);
|
||||
|
||||
if (format->body.media_type.value != media_type.audio)
|
||||
return SPA_RESULT_INVALID_MEDIA_TYPE;
|
||||
|
|
@ -49,12 +49,12 @@ spa_format_audio_parse (const SpaFormat *format,
|
|||
|
||||
if (info->media_subtype == media_subtype.raw) {
|
||||
spa_format_query (format,
|
||||
prop_audio.format, SPA_POD_TYPE_URI, &info->info.raw.format,
|
||||
prop_audio.flags, SPA_POD_TYPE_INT, &info->info.raw.flags,
|
||||
prop_audio.layout, SPA_POD_TYPE_INT, &info->info.raw.layout,
|
||||
prop_audio.rate, SPA_POD_TYPE_INT, &info->info.raw.rate,
|
||||
prop_audio.channels, SPA_POD_TYPE_INT, &info->info.raw.channels,
|
||||
prop_audio.channel_mask, SPA_POD_TYPE_INT, &info->info.raw.channel_mask,
|
||||
format_audio.format, SPA_POD_TYPE_ID, &info->info.raw.format,
|
||||
format_audio.flags, SPA_POD_TYPE_INT, &info->info.raw.flags,
|
||||
format_audio.layout, SPA_POD_TYPE_INT, &info->info.raw.layout,
|
||||
format_audio.rate, SPA_POD_TYPE_INT, &info->info.raw.rate,
|
||||
format_audio.channels, SPA_POD_TYPE_INT, &info->info.raw.channels,
|
||||
format_audio.channel_mask, SPA_POD_TYPE_INT, &info->info.raw.channel_mask,
|
||||
0);
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue