From 0cb89072018f27cf49bfee0f09e2de3730c22a01 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Wed, 12 Jun 2019 22:51:25 +0200 Subject: [PATCH] [streaming] Logging fix --- src/httpd_streaming.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/httpd_streaming.c b/src/httpd_streaming.c index 0e7980e8..8cf9f64f 100644 --- a/src/httpd_streaming.c +++ b/src/httpd_streaming.c @@ -194,9 +194,15 @@ encode_buffer(uint8_t *buffer, size_t size) int samples; int ret; - if (streaming_not_supported || streaming_quality.channels == 0) + if (streaming_not_supported) { - DPRINTF(E_LOG, L_STREAMING, "Streaming unsuppored or quality is zero\n"); + DPRINTF(E_LOG, L_STREAMING, "Streaming unsupported\n"); + return -1; + } + + if (streaming_quality.channels == 0) + { + DPRINTF(E_LOG, L_STREAMING, "Streaming quality is zero (%d/%d/%d)\n", streaming_quality.sample_rate, streaming_quality.bits_per_sample, streaming_quality.channels); return -1; }