media-session: subscribe to params when needed

Subscribe to params and collect them.
This commit is contained in:
Wim Taymans 2019-11-19 16:08:40 +01:00
parent 541f3a4cc6
commit b7aa8f5c85
4 changed files with 101 additions and 2 deletions

View file

@ -406,6 +406,7 @@ static void stream_control_info(void *data, uint32_t id, const struct pw_stream_
{
pa_stream *s = data;
pw_log_debug("stream %p: control %d", s, id);
switch (id) {
case SPA_PROP_mute:
if (control->n_values > 0)