<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - 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"
href="https://bugs.freedesktop.org/show_bug.cgi?id=103103#c6">Comment # 6</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - 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"
href="https://bugs.freedesktop.org/show_bug.cgi?id=103103">bug 103103</a>
from <span class="vcard"><a class="email" href="mailto:mkid.dev@gmail.com" title="mkid.dev@gmail.com">mkid.dev@gmail.com</a>
</span></b>
<pre>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;
+ }</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>