mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-04 07:09:06 +00: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:
parent
420d3a40dd
commit
4eb33054cd
1 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue