From e172effe71c0331def42c5ece0014b32fc66144e Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 28 Jan 2021 17:56:07 +0100 Subject: [PATCH] pulse-server: log the amount of underrun bytes --- src/modules/module-protocol-pulse/pulse-server.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/module-protocol-pulse/pulse-server.c b/src/modules/module-protocol-pulse/pulse-server.c index 16ebd7685..b6a3f1e0e 100644 --- a/src/modules/module-protocol-pulse/pulse-server.c +++ b/src/modules/module-protocol-pulse/pulse-server.c @@ -455,15 +455,15 @@ static int reply_error(struct client *client, uint32_t command, uint32_t tag, in #include "extension.c" -static int send_underflow(struct stream *stream, int64_t offset) +static int send_underflow(struct stream *stream, int64_t offset, uint32_t underrun_for) { struct client *client = stream->client; struct impl *impl = client->impl; struct message *reply; if (ratelimit_test(&impl->rate_limit, stream->timestamp)) { - pw_log_warn(NAME" %p: [%s] UNDERFLOW channel:%u offset:%"PRIi64, - client, client->name, stream->channel, offset); + pw_log_warn(NAME" %p: [%s] UNDERFLOW channel:%u offset:%"PRIi64" underrun:%u", + client, client->name, stream->channel, offset, underrun_for); } reply = message_alloc(impl, -1, 0); @@ -1458,7 +1458,7 @@ do_process_done(struct spa_loop *loop, stream->underrun_for = 0; stream->playing_for = 0; if (pd->underrun) - send_underflow(stream, pd->read_index); + send_underflow(stream, pd->read_index, pd->underrun_for); else send_stream_started(stream); }