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:
3e6ce48
)
tunnel: use proper value for pa_source_state switch
author
Boris Egorov
<egorov@linux.com>
Mon, 12 Jan 2015 17:52:11 +0000
(23:52 +0600)
committer
Peter Meerwald
<p.meerwald@bct-electronic.com>
Tue, 13 Jan 2015 10:27:46 +0000
(11:27 +0100)
pa_source_state_t can have value PA_SOURCE_INVALID_STATE, not
PA_SINK_INVALID_STATE. It happens to be the same here, but it can break
sometimes.
Issue detected by PVS Studio.
src/modules/module-tunnel.c
patch
|
blob
|
history
diff --git
a/src/modules/module-tunnel.c
b/src/modules/module-tunnel.c
index
bef6ae8
..
6600219
100644
(file)
--- a/
src/modules/module-tunnel.c
+++ b/
src/modules/module-tunnel.c
@@
-691,7
+691,7
@@
static int source_set_state(pa_source *s, pa_source_state_t state) {
case PA_SOURCE_UNLINKED:
case PA_SOURCE_INIT:
- case PA_S
INK
_INVALID_STATE:
+ case PA_S
OURCE
_INVALID_STATE:
;
}