mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-16 08:56:40 -05:00
protocol-native: print underrun message only once for each underrun
This commit is contained in:
parent
3507d1eb37
commit
5b871966ab
1 changed files with 2 additions and 1 deletions
|
|
@ -1468,6 +1468,7 @@ static int sink_input_pop_cb(pa_sink_input *i, size_t nbytes, pa_memchunk *chunk
|
||||||
if (pa_memblockq_is_readable(s->memblockq))
|
if (pa_memblockq_is_readable(s->memblockq))
|
||||||
s->is_underrun = FALSE;
|
s->is_underrun = FALSE;
|
||||||
else {
|
else {
|
||||||
|
if (!s->is_underrun)
|
||||||
pa_log_debug("Underrun on '%s', %lu bytes in queue.", pa_strnull(pa_proplist_gets(i->proplist, PA_PROP_MEDIA_NAME)), (unsigned long) pa_memblockq_get_length(s->memblockq));
|
pa_log_debug("Underrun on '%s', %lu bytes in queue.", pa_strnull(pa_proplist_gets(i->proplist, PA_PROP_MEDIA_NAME)), (unsigned long) pa_memblockq_get_length(s->memblockq));
|
||||||
|
|
||||||
if (s->drain_request && pa_sink_input_safe_to_remove(i)) {
|
if (s->drain_request && pa_sink_input_safe_to_remove(i)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue