diff --git a/libweston/content-protection.c b/libweston/content-protection.c index 5659a32b..625d3567 100644 --- a/libweston/content-protection.c +++ b/libweston/content-protection.c @@ -340,9 +340,8 @@ weston_compositor_enable_content_protection(struct weston_compositor *compositor cp->destroy_listener.notify = cp_destroy_listener; wl_signal_add(&compositor->destroy_signal, &cp->destroy_listener); - cp->debug = weston_log_ctx_add_log_scope(compositor->weston_log_ctx, - "content-protection-debug", - "debug-logs for content-protection", - NULL, NULL, NULL); + cp->debug = weston_compositor_add_log_scope(compositor, "content-protection-debug", + "debug-logs for content-protection", + NULL, NULL, NULL); return 0; }