ref: b8b161f08345120c31866a190cde9aff566be4af
parent: 51032763ce0e33a9ee5ec3a532dfc6c093693597
author: Mans Rullgard <mans@mansr.com>
date: Tue Aug 4 12:25:27 EDT 2020
pulseaudio: ignore zero-length writes [bug #277] Pulseaudio (supposedly) doesn't like zero-length writes. Return early to avoid a bogus error.
--- a/src/pulseaudio.c
+++ b/src/pulseaudio.c
@@ -126,6 +126,9 @@
size_t len;
int rc, error;
+ if (!nsamp)
+ return 0;
+
/* Pulse Audio buffer lengths are true buffer lengths and not
* count of samples. */
len = nsamp * sizeof(sox_sample_t);