mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-02-16 22:05:31 -05:00
Merge branch 'eproto-error-signal' into 'master'
stream: on EPROTO core error, set streams & filters to error state See merge request pipewire/pipewire!2678
This commit is contained in:
commit
3465563f0d
2 changed files with 6 additions and 0 deletions
|
|
@ -1159,6 +1159,9 @@ static void on_core_error(void *_data, uint32_t id, int seq, int res, const char
|
|||
|
||||
if (id == PW_ID_CORE && res == -EPIPE) {
|
||||
filter_set_state(filter, PW_FILTER_STATE_UNCONNECTED, res, message);
|
||||
} else if (id == PW_ID_CORE && res == -EPROTO) {
|
||||
pw_filter_set_active(filter, false);
|
||||
filter_set_state(filter, PW_FILTER_STATE_ERROR, res, message);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1508,6 +1508,9 @@ static void on_core_error(void *data, uint32_t id, int seq, int res, const char
|
|||
|
||||
if (id == PW_ID_CORE && res == -EPIPE) {
|
||||
stream_set_state(stream, PW_STREAM_STATE_UNCONNECTED, res, message);
|
||||
} else if (id == PW_ID_CORE && res == -EPROTO) {
|
||||
pw_stream_set_active(stream, false);
|
||||
stream_set_state(stream, PW_STREAM_STATE_ERROR, res, message);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue