<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Client freezes intermittently playing over network"
href="https://bugs.freedesktop.org/show_bug.cgi?id=89883#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Client freezes intermittently playing over network"
href="https://bugs.freedesktop.org/show_bug.cgi?id=89883">bug 89883</a>
from <span class="vcard"><a class="email" href="mailto:superquad.vortex2@gmail.com" title="Raymond <superquad.vortex2@gmail.com>"> <span class="fn">Raymond</span></a>
</span></b>
<pre>if you look at
<a href="http://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/utils/pacat.c">http://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/utils/pacat.c</a>
static void do_stream_write(size_t length) {
size_t l;
pa_assert(length);
if (!buffer || !buffer_length)
return;
l = length;
if (l > buffer_length)
l = buffer_length;
if (pa_stream_write(stream, (uint8_t*) buffer + buffer_index, l, NULL, 0,
PA_SEEK_RELATIVE) < 0) {
pa_log(_("pa_stream_write() failed: %s"),
pa_strerror(pa_context_errno(context)));
quit(1);
return;
}
buffer_length -= l;
buffer_index += l;
if (!buffer_length) {
pa_xfree(buffer);
buffer = NULL;
buffer_index = buffer_length = 0;
}
}
either length is no multiple of frame size
or
index which is not multiple of frame size
are invalid when call pa_stream_write()
:
2015-04-01T19:50:39.905427-06:00 localhost pulseaudio[28649]: W: [pulseaudio]
protocol-native.c: Client sent non-aligned memblock: index 2841, length 1255,
frame size: 4</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>