source: Fix a bad condition that made source events not be emitted 68/210768/2 accepted/tizen/unified/20190725.042946 submit/tizen/20190724.120524
authorArun Raghavan <arunsr@codeaurora.org>
Tue, 19 Feb 2019 03:57:02 +0000 (09:27 +0530)
committerSeungbae Shin <seungbae.shin@samsung.com>
Wed, 24 Jul 2019 08:55:32 +0000 (17:55 +0900)
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

packaging/pulseaudio.spec
src/pulsecore/source.c

index 1f73254..1f8a066 100644 (file)
@@ -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
index d7edc96..5eff3a3 100644 (file)
@@ -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);
         }