mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-23 06:59:58 -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
|
|
@ -36,6 +36,9 @@
|
|||
|
||||
#define NAME "metadata"
|
||||
|
||||
PW_LOG_TOPIC_STATIC(mod_topic, "ms.mod." NAME);
|
||||
#define PW_LOG_TOPIC_DEFAULT mod_topic
|
||||
|
||||
struct metadata {
|
||||
struct pw_impl_metadata *impl;
|
||||
struct pw_metadata *metadata;
|
||||
|
|
@ -68,6 +71,8 @@ struct pw_metadata *sm_media_session_export_metadata(struct sm_media_session *se
|
|||
int res;
|
||||
struct spa_dict_item items[1];
|
||||
|
||||
PW_LOG_TOPIC_INIT(mod_topic);
|
||||
|
||||
this = calloc(1, sizeof(*this));
|
||||
if (this == NULL)
|
||||
goto error_errno;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue