pulse-server: emit stream changed after Latency param change

Piggy back on the Latency param change to emit a stream changed event
because we now might have a link between the stream and a device.

We should really watch for new links and emit change events for the
streams that it links to.

Fixes #3522
This commit is contained in:
Wim Taymans 2023-09-21 16:42:08 +02:00
parent 8249fa3cbf
commit 224f1f16f1

View file

@ -440,6 +440,10 @@ static void node_event_info(void *data, const struct pw_node_info *info)
case SPA_PARAM_PropInfo:
case SPA_PARAM_Format:
case SPA_PARAM_EnumFormat:
/* also emit changed for the Latency param because the stream might
* now be linked. FIXME, we should check if a new link is made for
* a stream and only emit a changed event in that case. */
case SPA_PARAM_Latency:
changed++;
break;
default: