diff options
author | Boris Egorov <egorov@linux.com> | 2015-01-12 23:52:11 +0600 |
---|---|---|
committer | Peter Meerwald <p.meerwald@bct-electronic.com> | 2015-01-13 11:27:46 +0100 |
commit | 1931e40b1c5316d119dc2e5d93428a2d0231b15d (patch) | |
tree | c61fcea2057c4eeb53f52c6dffb8e169507148cb | |
parent | 3e6ce485f090780f623a879ad6a8dfd85edf53c1 (diff) | |
download | pulseaudio-1931e40b1c5316d119dc2e5d93428a2d0231b15d.tar.gz |
tunnel: use proper value for pa_source_state switch
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.
-rw-r--r-- | src/modules/module-tunnel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/module-tunnel.c b/src/modules/module-tunnel.c index bef6ae840..660021954 100644 --- 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_SINK_INVALID_STATE: + case PA_SOURCE_INVALID_STATE: ; } |