pulse: always update and debug the error

This commit is contained in:
Wim Taymans 2020-08-20 17:33:34 +02:00
parent 7120bfe059
commit adfa88c961

View file

@ -35,7 +35,7 @@
int pa_context_set_error(PA_CONST pa_context *c, int error) {
pa_assert(error >= 0);
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));
((pa_context*)c)->error = error;
}