Commit 23289358 authored by Leandro Ribeiro's avatar Leandro Ribeiro Committed by Pekka Paalanen
Browse files

pipewire: stop direct accessing core struct member



Commit "weston-log: add function to avoid direct
access to compositor members in non-core code" added the
function weston_compositor_add_log_scope mainly to allow
libweston users to avoid direct accessing core structs, as
weston_compositor.

Replace weston_log_context_add_log_scope usage by
weston_compositor_add_log_scope.
Signed-off-by: default avatarLeandro Ribeiro <leandrohr@riseup.net>
parent fa505c58
......@@ -823,10 +823,9 @@ weston_module_init(struct weston_compositor *compositor)
}
pipewire->debug =
weston_log_ctx_add_log_scope(compositor->weston_log_ctx,
"pipewire",
"Debug messages from pipewire plugin\n",
NULL, NULL, NULL);
weston_compositor_add_log_scope(compositor, "pipewire",
"Debug messages from pipewire plugin\n",
NULL, NULL, NULL);
return 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment