module-rtp: Cleanup default raw / raop formats

This places the default formats into a single place, which makes
it easier to keep track of them.
This commit is contained in:
Carlos Rafael Giani 2026-06-19 19:18:33 +02:00
parent 9f7eb63486
commit 11775850e5
6 changed files with 8 additions and 7 deletions

View file

@ -613,7 +613,7 @@ static int parse_audio_info(const struct pw_properties *props, struct spa_audio_
{
return spa_audio_info_raw_init_dict_keys(info,
&SPA_DICT_ITEMS(
SPA_DICT_ITEM(SPA_KEY_AUDIO_FORMAT, DEFAULT_FORMAT),
SPA_DICT_ITEM(SPA_KEY_AUDIO_FORMAT, DEFAULT_RAW_AUDIO_FORMAT),
SPA_DICT_ITEM(SPA_KEY_AUDIO_RATE, SPA_STRINGIFY(DEFAULT_RATE)),
SPA_DICT_ITEM(SPA_KEY_AUDIO_POSITION, DEFAULT_POSITION)),
&props->dict,