Summary: | padsp: misaligned fragment size or odd return from read() will cause pa_stream_write() to fail | ||
---|---|---|---|
Product: | PulseAudio | Reporter: | aiju-freedesktop |
Component: | tools | Assignee: | pulseaudio-bugs |
Status: | RESOLVED FIXED | QA Contact: | pulseaudio-bugs |
Severity: | normal | ||
Priority: | medium | CC: | lennart |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Bug Depends on: | |||
Bug Blocks: | 99067 |
Description
aiju-freedesktop
2017-05-20 15:48:07 UTC
Regression, so marking as a release blocker. Could you try this patch to see if it helps? https://lists.freedesktop.org/archives/pulseaudio-discuss/2017-May/028259.html Thanks, but your patch is not quite correct. I had to change + i->leftover = r - to_write; to + i->leftover += r - to_write; or else it would fail trying to memmove ~2**63 bytes... With this correction it fixes the issue (at least in my brief test). I think it would also be helpful to fix the fragment size calculation by moving i->fragment_size = (i->fragment_size/fs)*fs; in fix_metrics to the end of the function (just before the debug prints). Good catch on the leftover. Will fix. Want to write up a patch for the fragment size thing? Arun's patch is now in master, closing bug. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.