rtp_stream: Use the log topic of the module

Set log topic to the topic of the module linked with stream instead of
logging with "default" topic.
This commit is contained in:
Jonas Holmberg 2024-04-16 10:21:40 +02:00 committed by Wim Taymans
parent 24478b9128
commit 09088b376f
5 changed files with 7 additions and 4 deletions

View file

@ -124,7 +124,7 @@
#define NAME "raop-sink"
PW_LOG_TOPIC_STATIC(mod_topic, "mod." NAME);
PW_LOG_TOPIC(mod_topic, "mod." NAME);
#define PW_LOG_TOPIC_DEFAULT mod_topic
#define BUFFER_SIZE (1u<<22)

View file

@ -126,7 +126,7 @@
#define NAME "rtp-session"
PW_LOG_TOPIC_STATIC(mod_topic, "mod." NAME);
PW_LOG_TOPIC(mod_topic, "mod." NAME);
#define PW_LOG_TOPIC_DEFAULT mod_topic
#define DEFAULT_CONTROL_IP "0.0.0.0"

View file

@ -116,7 +116,7 @@
#define NAME "rtp-sink"
PW_LOG_TOPIC_STATIC(mod_topic, "mod." NAME);
PW_LOG_TOPIC(mod_topic, "mod." NAME);
#define PW_LOG_TOPIC_DEFAULT mod_topic
#define DEFAULT_PORT 46000

View file

@ -109,7 +109,7 @@
#define NAME "rtp-source"
PW_LOG_TOPIC_STATIC(mod_topic, "mod." NAME);
PW_LOG_TOPIC(mod_topic, "mod." NAME);
#define PW_LOG_TOPIC_DEFAULT mod_topic
#define DEFAULT_CLEANUP_SEC 60

View file

@ -24,6 +24,9 @@
#include <module-rtp/stream.h>
#include <module-rtp/apple-midi.h>
PW_LOG_TOPIC_EXTERN(mod_topic);
#define PW_LOG_TOPIC_DEFAULT mod_topic
#define BUFFER_SIZE (1u<<22)
#define BUFFER_MASK (BUFFER_SIZE-1)
#define BUFFER_SIZE2 (BUFFER_SIZE>>1)