v4l2: use log topic

This commit is contained in:
Wim Taymans 2021-10-03 12:12:09 +02:00
parent a95937dfdb
commit 865635ef10
4 changed files with 65 additions and 51 deletions

View file

@ -24,6 +24,17 @@
#include <errno.h>
#include <spa/support/log.h>
#undef SPA_LOG_TOPIC_DEFAULT
#define SPA_LOG_TOPIC_DEFAULT v4l2_log_topic
extern struct spa_log_topic *v4l2_log_topic;
static inline void v4l2_log_topic_init(struct spa_log *log)
{
spa_log_topic_init(log, v4l2_log_topic);
}
struct spa_v4l2_device {
struct spa_log *log;
int fd;