mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
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.
This commit is contained in:
parent
3e6ce485f0
commit
1931e40b1c
1 changed files with 1 additions and 1 deletions
|
|
@ -691,7 +691,7 @@ static int source_set_state(pa_source *s, pa_source_state_t state) {
|
||||||
|
|
||||||
case PA_SOURCE_UNLINKED:
|
case PA_SOURCE_UNLINKED:
|
||||||
case PA_SOURCE_INIT:
|
case PA_SOURCE_INIT:
|
||||||
case PA_SINK_INVALID_STATE:
|
case PA_SOURCE_INVALID_STATE:
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue