module-raop: only set softVolume when valid

This commit is contained in:
Wim Taymans 2024-07-01 11:27:17 +02:00
parent b8d07e40d6
commit 82b9fa118f

View file

@ -1643,10 +1643,10 @@ static void stream_props_changed(struct impl *impl, uint32_t id, const struct sp
impl->volume = volume;
rtsp_send_volume(impl);
}
spa_pod_builder_prop(&b, SPA_PROP_softVolumes, 0);
spa_pod_builder_array(&b, sizeof(float), SPA_TYPE_Float,
n_vols, soft_vols);
}
spa_pod_builder_raw_padded(&b, prop, SPA_POD_PROP_SIZE(prop));
break;
}