pulse-server: remove unused field

And it's not quite useful to debug the value either.
This commit is contained in:
Wim Taymans 2022-01-14 10:41:11 +01:00
parent ac919e2a10
commit 6394537dbd
3 changed files with 5 additions and 5 deletions

View file

@ -1139,7 +1139,7 @@ do_process_done(struct spa_loop *loop,
stream->underrun_for = 0; stream->underrun_for = 0;
stream->playing_for = 0; stream->playing_for = 0;
if (pd->underrun) if (pd->underrun)
stream_send_underflow(stream, stream->read_index, pd->underrun_for); stream_send_underflow(stream, stream->read_index);
else else
stream_send_started(stream); stream_send_started(stream);
} }

View file

@ -183,15 +183,15 @@ uint32_t stream_pop_missing(struct stream *stream)
return missing; 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 client *client = stream->client;
struct impl *impl = client->impl; struct impl *impl = client->impl;
struct message *reply; struct message *reply;
if (ratelimit_test(&impl->rate_limit, stream->timestamp, SPA_LOG_LEVEL_INFO)) { if (ratelimit_test(&impl->rate_limit, stream->timestamp, SPA_LOG_LEVEL_INFO)) {
pw_log_info("[%s]: UNDERFLOW channel:%u offset:%" PRIi64 " underrun:%u", pw_log_info("[%s]: UNDERFLOW channel:%u offset:%" PRIi64,
client->name, stream->channel, offset, underrun_for); client->name, stream->channel, offset);
} }
reply = message_alloc(impl, -1, 0); reply = message_alloc(impl, -1, 0);

View file

@ -115,7 +115,7 @@ void stream_free(struct stream *stream);
void stream_flush(struct stream *stream); void stream_flush(struct stream *stream);
uint32_t stream_pop_missing(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_overflow(struct stream *stream);
int stream_send_killed(struct stream *stream); int stream_send_killed(struct stream *stream);
int stream_send_started(struct stream *stream); int stream_send_started(struct stream *stream);