From 8f6033e787594019251a37957dc90ab1bd95408c Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Sun, 2 Oct 2016 18:48:00 +0200 Subject: [PATCH] [pulseaudio] More logging --- src/outputs/pulse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/outputs/pulse.c b/src/outputs/pulse.c index 9e3d0182..a51ab8ba 100644 --- a/src/outputs/pulse.c +++ b/src/outputs/pulse.c @@ -714,12 +714,12 @@ pulse_write(uint8_t *buf, uint64_t rtptime) if (ret < 0) { ret = pa_context_errno(p->context); - DPRINTF(E_LOG, L_LAUDIO, "Pulseaudio error determining writable size: %s\n", pa_strerror(ret)); + DPRINTF(E_LOG, L_LAUDIO, "Pulseaudio device '%s', returned error instead of writable size: %s\n", ps->devname, pa_strerror(ret)); continue; } else if (ret < length) { - DPRINTF(E_WARN, L_LAUDIO, "Pulseaudio buffer overrun detected, skipping packet\n"); + DPRINTF(E_WARN, L_LAUDIO, "Pulseaudio device '%s' not writable or overrun (%d/%zu), skipping packet\n", ps->devname, ret, length); continue; } @@ -727,7 +727,7 @@ pulse_write(uint8_t *buf, uint64_t rtptime) if (ret < 0) { ret = pa_context_errno(p->context); - DPRINTF(E_LOG, L_LAUDIO, "Error writing Pulseaudio stream data: %s\n", pa_strerror(ret)); + DPRINTF(E_LOG, L_LAUDIO, "Error writing Pulseaudio stream data to '%s': %s\n", ps->devname, pa_strerror(ret)); continue; } }