[pulseaudio-tickets] [Bug 89883] Client freezes intermittently playing over network

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Apr 4 22:51:09 PDT 2015


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

--- Comment #4 from Raymond <superquad.vortex2 at gmail.com> ---
if you look at
http://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/utils/pacat.c

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

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


More information about the pulseaudio-bugs mailing list