mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-18 08:56:45 -05:00
pulse: always update and debug the error
This commit is contained in:
parent
7120bfe059
commit
adfa88c961
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@
|
||||||
int pa_context_set_error(PA_CONST pa_context *c, int error) {
|
int pa_context_set_error(PA_CONST pa_context *c, int error) {
|
||||||
pa_assert(error >= 0);
|
pa_assert(error >= 0);
|
||||||
pa_assert(error < PA_ERR_MAX);
|
pa_assert(error < PA_ERR_MAX);
|
||||||
if (c && c->error != error) {
|
if (c) {
|
||||||
pw_log_debug("context %p: error %d %s", c, error, pa_strerror(error));
|
pw_log_debug("context %p: error %d %s", c, error, pa_strerror(error));
|
||||||
((pa_context*)c)->error = error;
|
((pa_context*)c)->error = error;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue