pulse: actually remember the default source

This commit is contained in:
Wim Taymans 2020-08-04 17:21:15 +02:00
parent db12f47505
commit 9edb0c1206
2 changed files with 3 additions and 3 deletions

5
NEWS
View file

@ -36,6 +36,8 @@ with previous 0.3.x releases.
Older versions:
PipeWire 0.3.8
This is a bugfix release that is API and ABI compatible
@ -80,9 +82,6 @@ with previous 0.3.x releases.
- Many build and stability fixes.
Older versions:
PipeWire 0.3.7
This is a bugfix release that is API and ABI compatible

View file

@ -995,6 +995,7 @@ static int metadata_property(void *object,
} else if (key && strcmp(key, METADATA_DEFAULT_SOURCE) == 0) {
val = value ? (uint32_t)atoi(value) : SPA_ID_INVALID;
changed = c->default_source != val;
c->default_source = val;
}
if (changed)
emit_event(global->context, global, PA_SUBSCRIPTION_EVENT_CHANGE);