stream: use sizeof instead of hardcoded value

This commit is contained in:
Wim Taymans 2021-10-19 12:26:02 +02:00
parent b6059fd007
commit b4dc04c777

View file

@ -1554,7 +1554,7 @@ static void add_params(struct stream *impl)
uint8_t buffer[4096]; uint8_t buffer[4096];
struct spa_pod_builder b; struct spa_pod_builder b;
spa_pod_builder_init(&b, buffer, 4096); spa_pod_builder_init(&b, buffer, sizeof(buffer));
add_param(impl, SPA_PARAM_IO, PARAM_FLAG_LOCKED, add_param(impl, SPA_PARAM_IO, PARAM_FLAG_LOCKED,
spa_pod_builder_add_object(&b, spa_pod_builder_add_object(&b,