mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-25 06:59:57 -05:00
stream: ignore state changes when terminated
This commit is contained in:
parent
df5c1f4c6e
commit
d379fa348b
1 changed files with 3 additions and 0 deletions
|
|
@ -213,6 +213,9 @@ static void stream_state_changed(void *data, enum pw_stream_state old,
|
|||
pw_log_debug("stream %p: state '%s'->'%s'", s, pw_stream_state_as_string(old),
|
||||
pw_stream_state_as_string(state));
|
||||
|
||||
if (s->state == PA_STREAM_TERMINATED)
|
||||
return;
|
||||
|
||||
switch(state) {
|
||||
case PW_STREAM_STATE_ERROR:
|
||||
pa_stream_set_state(s, PA_STREAM_FAILED);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue