• Ted Meyer's avatar
    Fix for PA buffer size allocation too small · a84bd68c
    Ted Meyer authored
    PA pa_stream_begin_write() allocates a maximum of 8184, which can cause
    a check fail when the audio-buffer-size is greater than that. To fix
    this, we just have to write as many as will fit in the allocated space,
    allocate another space, and write the remainder.
    
    BUG=740054
    
    Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
    Change-Id: I4effc3a405c1bfe2727a688b237841470dc1efd4
    Reviewed-on: https://chromium-review.googlesource.com/809334Reviewed-by: default avatarDale Curtis <dalecurtis@chromium.org>
    Commit-Queue: Ted Meyer <tmathmeyer@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#522285}
    a84bd68c
pulse_output.cc 8.84 KB