mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-14 06:59:57 -05:00
media-session: add log topics to all modules
Media-session itself uses ms.core, there are only two files that could have a sub-topic but right now they don't use it (match-rules and metadata). The modules use the ms.mod.* namespace, so it's trivial to filter on those.
This commit is contained in:
parent
52a96bb602
commit
e3b216c026
26 changed files with 346 additions and 218 deletions
|
|
@ -46,8 +46,12 @@
|
|||
|
||||
/** \page page_media_session_module_v4l2_monitor Media Session Module: V4L2 Monitor
|
||||
*/
|
||||
#define NAME "v4l2-monitor"
|
||||
#define SESSION_CONF "v4l2-monitor.conf"
|
||||
|
||||
PW_LOG_TOPIC_STATIC(mod_topic, "ms.mod." NAME);
|
||||
#define PW_LOG_TOPIC_DEFAULT mod_topic
|
||||
|
||||
struct device;
|
||||
|
||||
struct node {
|
||||
|
|
@ -539,6 +543,8 @@ int sm_v4l2_monitor_start(struct sm_media_session *sess)
|
|||
int res;
|
||||
void *iface;
|
||||
|
||||
PW_LOG_TOPIC_INIT(mod_topic);
|
||||
|
||||
impl = calloc(1, sizeof(struct impl));
|
||||
if (impl == NULL)
|
||||
return -errno;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue