libcamera: use log topic

This commit is contained in:
Wim Taymans 2021-10-03 12:26:00 +02:00
parent 865635ef10
commit 783ae4d4e9
6 changed files with 38 additions and 24 deletions

View file

@ -44,8 +44,6 @@
#include "libcamera.h"
#define NAME "libcamera-client"
struct impl {
struct spa_handle handle;
struct spa_device device;
@ -192,6 +190,8 @@ impl_init(const struct spa_handle_factory *factory,
this = (struct impl *) handle;
this->log = spa_support_find(support, n_support, SPA_TYPE_INTERFACE_Log);
libcamera_log_topic_init(this->log);
this->main_loop = spa_support_find(support, n_support, SPA_TYPE_INTERFACE_Loop);
if (this->main_loop == NULL) {