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>
This commit is contained in:
parent
fa505c588f
commit
23289358af
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user