rtp: Add some logging to know what backend is being used
authorArun Raghavan <arun@arunraghavan.net>
Fri, 5 Jul 2019 00:51:07 +0000 (06:21 +0530)
committerArun Raghavan <arun@arunraghavan.net>
Fri, 8 Nov 2019 12:09:40 +0000 (17:39 +0530)
Should make debugging any issues that come up easier.

src/modules/rtp/rtp-gstreamer.c
src/modules/rtp/rtp-native.c

index 52ebd41..3ee77cb 100644 (file)
@@ -165,6 +165,8 @@ pa_rtp_context* pa_rtp_context_new_send(int fd, uint8_t payload, size_t mtu, con
 
     pa_assert(fd >= 0);
 
+    pa_log_info("Initialising GStreamer RTP backend for send");
+
     c = pa_xnew0(pa_rtp_context, 1);
 
     c->ss = *ss;
@@ -406,6 +408,8 @@ pa_rtp_context* pa_rtp_context_new_recv(int fd, uint8_t payload, const pa_sample
 
     pa_assert(fd >= 0);
 
+    pa_log_info("Initialising GStreamer RTP backend for receive");
+
     c = pa_xnew0(pa_rtp_context, 1);
 
     c->fdsem = pa_fdsem_new();
index af2bf9f..01e668c 100644 (file)
@@ -63,6 +63,8 @@ pa_rtp_context* pa_rtp_context_new_send(int fd, uint8_t payload, size_t mtu, con
 
     pa_assert(fd >= 0);
 
+    pa_log_info("Initialising native RTP backend for send");
+
     c = pa_xnew0(pa_rtp_context, 1);
 
     c->fd = fd;
@@ -172,6 +174,8 @@ int pa_rtp_send(pa_rtp_context *c, pa_memblockq *q) {
 pa_rtp_context* pa_rtp_context_new_recv(int fd, uint8_t payload, const pa_sample_spec *ss) {
     pa_rtp_context *c;
 
+    pa_log_info("Initialising native RTP backend for receive");
+
     c = pa_xnew0(pa_rtp_context, 1);
 
     c->fd = fd;