mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-12-17 21:44:20 +01:00
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.
This commit is contained in:
@@ -51,6 +51,11 @@ public final class AudioRawRecorder implements AsyncProcessor {
|
|||||||
|
|
||||||
streamer.writePacket(buffer, bufferInfo);
|
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 {
|
} finally {
|
||||||
capture.stop();
|
capture.stop();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user