From 9edb0c1206e2639f7c3a80b069c10d0e39cdf218 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 4 Aug 2020 17:21:15 +0200 Subject: [PATCH] pulse: actually remember the default source --- NEWS | 5 ++--- pipewire-pulseaudio/src/context.c | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index a8747c070..d7ac0d821 100644 --- a/NEWS +++ b/NEWS @@ -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 diff --git a/pipewire-pulseaudio/src/context.c b/pipewire-pulseaudio/src/context.c index 1c9f95a59..35414cece 100644 --- a/pipewire-pulseaudio/src/context.c +++ b/pipewire-pulseaudio/src/context.c @@ -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);