diff --git a/src/modules/module-protocol-pulse/pulse-server.c b/src/modules/module-protocol-pulse/pulse-server.c index acc2e9a7d..2618a4b85 100644 --- a/src/modules/module-protocol-pulse/pulse-server.c +++ b/src/modules/module-protocol-pulse/pulse-server.c @@ -1139,7 +1139,7 @@ do_process_done(struct spa_loop *loop, stream->underrun_for = 0; stream->playing_for = 0; if (pd->underrun) - stream_send_underflow(stream, stream->read_index, pd->underrun_for); + stream_send_underflow(stream, stream->read_index); else stream_send_started(stream); } diff --git a/src/modules/module-protocol-pulse/stream.c b/src/modules/module-protocol-pulse/stream.c index 19a3c9938..6044d12c9 100644 --- a/src/modules/module-protocol-pulse/stream.c +++ b/src/modules/module-protocol-pulse/stream.c @@ -183,15 +183,15 @@ uint32_t stream_pop_missing(struct stream *stream) return missing; } -int stream_send_underflow(struct stream *stream, int64_t offset, uint32_t underrun_for) +int stream_send_underflow(struct stream *stream, int64_t offset) { struct client *client = stream->client; struct impl *impl = client->impl; struct message *reply; if (ratelimit_test(&impl->rate_limit, stream->timestamp, SPA_LOG_LEVEL_INFO)) { - pw_log_info("[%s]: UNDERFLOW channel:%u offset:%" PRIi64 " underrun:%u", - client->name, stream->channel, offset, underrun_for); + pw_log_info("[%s]: UNDERFLOW channel:%u offset:%" PRIi64, + client->name, stream->channel, offset); } reply = message_alloc(impl, -1, 0); diff --git a/src/modules/module-protocol-pulse/stream.h b/src/modules/module-protocol-pulse/stream.h index 3dc56793b..70158ed99 100644 --- a/src/modules/module-protocol-pulse/stream.h +++ b/src/modules/module-protocol-pulse/stream.h @@ -115,7 +115,7 @@ void stream_free(struct stream *stream); void stream_flush(struct stream *stream); uint32_t stream_pop_missing(struct stream *stream); -int stream_send_underflow(struct stream *stream, int64_t offset, uint32_t underrun_for); +int stream_send_underflow(struct stream *stream, int64_t offset); int stream_send_overflow(struct stream *stream); int stream_send_killed(struct stream *stream); int stream_send_started(struct stream *stream);