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: Leandro Ribeiro <leandrohr@riseup.net>
dev
Leandro Ribeiro 5 years ago committed by Pekka Paalanen
parent fa505c588f
commit 23289358af
  1. 3
      pipewire/pipewire-plugin.c

@ -823,8 +823,7 @@ weston_module_init(struct weston_compositor *compositor)
} }
pipewire->debug = pipewire->debug =
weston_log_ctx_add_log_scope(compositor->weston_log_ctx, weston_compositor_add_log_scope(compositor, "pipewire",
"pipewire",
"Debug messages from pipewire plugin\n", "Debug messages from pipewire plugin\n",
NULL, NULL, NULL); NULL, NULL, NULL);

Loading…
Cancel
Save