From 1931e40b1c5316d119dc2e5d93428a2d0231b15d Mon Sep 17 00:00:00 2001 From: Boris Egorov Date: Mon, 12 Jan 2015 23:52:11 +0600 Subject: [PATCH] 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. --- src/modules/module-tunnel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: ; }