From: Arun Raghavan Date: Tue, 19 Feb 2019 03:57:02 +0000 (+0530) Subject: source: Fix a bad condition that made source events not be emitted X-Git-Tag: accepted/tizen/unified/20190725.042946^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F68%2F210768%2F2;p=platform%2Fupstream%2Fpulseaudio.git source: Fix a bad condition that made source events not be emitted This broke during a refactor of sink/source state-change. https://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/?id=db788229c66369a7b1283173183662b7f5e6c742 [Version] 11.1-76 [Profile] Common [Issue Type] Upstream patch Change-Id: I670281dcb94aa7d2bcc24b05cd44b99fa7ffc376 --- diff --git a/packaging/pulseaudio.spec b/packaging/pulseaudio.spec index 1f73254..1f8a066 100644 --- a/packaging/pulseaudio.spec +++ b/packaging/pulseaudio.spec @@ -3,7 +3,7 @@ Name: pulseaudio Summary: Improved Linux sound server Version: 11.1 -Release: 75 +Release: 76 Group: Multimedia/Audio License: LGPL-2.1 URL: http://pulseaudio.org diff --git a/src/pulsecore/source.c b/src/pulsecore/source.c index d7edc96..5eff3a3 100644 --- a/src/pulsecore/source.c +++ b/src/pulsecore/source.c @@ -490,7 +490,7 @@ static int source_set_state(pa_source *s, pa_source_state_t state, pa_suspend_ca /* If we enter UNLINKED state, then we don't send change notifications. * pa_source_unlink() will send unlink notifications instead. */ - if (state == PA_SOURCE_UNLINKED) { + if (state != PA_SOURCE_UNLINKED) { pa_hook_fire(&s->core->hooks[PA_CORE_HOOK_SOURCE_STATE_CHANGED], s); pa_subscription_post(s->core, PA_SUBSCRIPTION_EVENT_SOURCE | PA_SUBSCRIPTION_EVENT_CHANGE, s->index); }