From a17cc55c4c9a0901d527d21c00093fd57a2847b5 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Fri, 5 Jul 2019 06:21:07 +0530 Subject: [PATCH] rtp: Add some logging to know what backend is being used Should make debugging any issues that come up easier. --- src/modules/rtp/rtp-gstreamer.c | 4 ++++ src/modules/rtp/rtp-native.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/modules/rtp/rtp-gstreamer.c b/src/modules/rtp/rtp-gstreamer.c index 52ebd41dd..3ee77cb7f 100644 --- a/src/modules/rtp/rtp-gstreamer.c +++ b/src/modules/rtp/rtp-gstreamer.c @@ -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(); diff --git a/src/modules/rtp/rtp-native.c b/src/modules/rtp/rtp-native.c index af2bf9fc6..01e668cc6 100644 --- a/src/modules/rtp/rtp-native.c +++ b/src/modules/rtp/rtp-native.c @@ -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;