projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8607455
)
source: Fix a bad condition that made source events not be emitted
author
Arun Raghavan
<arunsr@codeaurora.org>
Tue, 19 Feb 2019 03:57:02 +0000
(09:27 +0530)
committer
Arun Raghavan
<arun@arunraghavan.net>
Tue, 19 Feb 2019 04:00:34 +0000
(09:30 +0530)
This broke during a refactor of sink/source state-change.
src/pulsecore/source.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/source.c
b/src/pulsecore/source.c
index 5fb148c68d09bf1875ce221bc08ad91be3d1d7bd..3324415ede382fcb4535e4990a7edaa9bdb6fe08 100644
(file)
--- a/
src/pulsecore/source.c
+++ b/
src/pulsecore/source.c
@@
-438,7
+438,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);
}