mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
stream: print error
This commit is contained in:
parent
81a7908d44
commit
792402849f
1 changed files with 3 additions and 0 deletions
|
|
@ -274,6 +274,9 @@ static bool stream_set_state(struct pw_stream *stream, enum pw_stream_state stat
|
|||
pw_stream_state_as_string(old),
|
||||
pw_stream_state_as_string(state), stream->error);
|
||||
|
||||
if (state == PW_STREAM_STATE_ERROR)
|
||||
pw_log_error(NAME" %p: error %s", stream, error);
|
||||
|
||||
stream->state = state;
|
||||
pw_stream_emit_state_changed(stream, old, state, error);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue