pw-profiler: report error when we can't bind

This commit is contained in:
Wim Taymans 2020-03-26 10:24:14 +01:00
parent 413bda908a
commit 7693834a81

View file

@ -484,7 +484,7 @@ static void registry_event_global(void *data, uint32_t id,
proxy = pw_registry_bind(d->registry, id, type, PW_VERSION_PROFILER, 0); proxy = pw_registry_bind(d->registry, id, type, PW_VERSION_PROFILER, 0);
if (proxy == NULL) if (proxy == NULL)
goto no_mem; goto error_proxy;
fprintf(stderr, "Attaching to Profiler id:%d\n", id); fprintf(stderr, "Attaching to Profiler id:%d\n", id);
d->profiler = proxy; d->profiler = proxy;
@ -492,8 +492,8 @@ static void registry_event_global(void *data, uint32_t id,
return; return;
no_mem: error_proxy:
pw_log_error("failed to create proxy"); pw_log_error("failed to create proxy: %m");
return; return;
} }