mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
libcamera: use log topic
This commit is contained in:
parent
865635ef10
commit
783ae4d4e9
6 changed files with 38 additions and 24 deletions
|
|
@ -46,8 +46,6 @@
|
|||
|
||||
#include "libcamera.h"
|
||||
|
||||
#define NAME "libcamera-device"
|
||||
|
||||
static const char default_device[] = "/dev/media0";
|
||||
|
||||
struct props {
|
||||
|
|
@ -81,7 +79,7 @@ static int emit_info(struct impl *this, bool full)
|
|||
uint32_t n_items = 0;
|
||||
struct spa_device_info info;
|
||||
struct spa_param_info params[2];
|
||||
char path[128], version[16];
|
||||
char path[128], version[16];
|
||||
|
||||
if ((res = spa_libcamera_open(&this->dev)) < 0)
|
||||
return res;
|
||||
|
|
@ -241,6 +239,7 @@ impl_init(const struct spa_handle_factory *factory,
|
|||
handle->clear = impl_clear, this = (struct impl *) handle;
|
||||
|
||||
this->log = spa_support_find(support, n_support, SPA_TYPE_INTERFACE_Log);
|
||||
libcamera_log_topic_init(this->log);
|
||||
|
||||
spa_hook_list_init(&this->hooks);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue