Do not log EPIPE on close for raw audio

Handle EPIPE the same way in AudioRawRecorder as in AudioEncoder.

This prevents useless errors on close.
flac.3
Romain Vimont 6 months ago
parent 420d3a40dd
commit 4eb33054cd

@ -51,6 +51,11 @@ public final class AudioRawRecorder implements AsyncProcessor {
streamer.writePacket(buffer, bufferInfo);
}
} catch (IOException e) {
// Broken pipe is expected on close, because the socket is closed by the client
if (!IO.isBrokenPipe(e)) {
Ln.e("Audio capture error", e);
}
} finally {
capture.stop();
}

Loading…
Cancel
Save