rtp: Add some logging to know what backend is being used

Should make debugging any issues that come up easier.
This commit is contained in:
Arun Raghavan 2019-07-05 06:21:07 +05:30
parent a34d2e547b
commit a17cc55c4c
2 changed files with 8 additions and 0 deletions

View 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_assert(fd >= 0);
pa_log_info("Initialising GStreamer RTP backend for send");
c = pa_xnew0(pa_rtp_context, 1); c = pa_xnew0(pa_rtp_context, 1);
c->ss = *ss; 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_assert(fd >= 0);
pa_log_info("Initialising GStreamer RTP backend for receive");
c = pa_xnew0(pa_rtp_context, 1); c = pa_xnew0(pa_rtp_context, 1);
c->fdsem = pa_fdsem_new(); c->fdsem = pa_fdsem_new();

View 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_assert(fd >= 0);
pa_log_info("Initialising native RTP backend for send");
c = pa_xnew0(pa_rtp_context, 1); c = pa_xnew0(pa_rtp_context, 1);
c->fd = fd; 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* pa_rtp_context_new_recv(int fd, uint8_t payload, const pa_sample_spec *ss) {
pa_rtp_context *c; pa_rtp_context *c;
pa_log_info("Initialising native RTP backend for receive");
c = pa_xnew0(pa_rtp_context, 1); c = pa_xnew0(pa_rtp_context, 1);
c->fd = fd; c->fd = fd;