[pulseaudio-tickets] [Bug 103103] The client has not a chance to provide data, when absolute offset is used in a stream without prebuffering and underrun happend for long time

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Oct 31 15:55:19 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=103103

--- Comment #6 from mkid.dev at gmail.com ---
It seems that change presented below correct the problem. Verification and
better understanding is needed.

diff --git a/src/pulsecore/memblockq.c b/src/pulsecore/memblockq.c
index b132dd3..1db4ec2 100644
--- a/src/pulsecore/memblockq.c
+++ b/src/pulsecore/memblockq.c
@@ -251,10 +251,13 @@ static void write_index_changed(pa_memblockq *bq, int64_t
old_write_index, bool

     delta = bq->write_index - old_write_index;

-    if (account)
+    if (account) {
         bq->requested -= delta;
-    else
+    } else {
         bq->missing -= delta;
+       if (bq->missing < 0)
+          bq->missing = 0;
+    }

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20171031/1ab477de/attachment.html>


More information about the pulseaudio-bugs mailing list