mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00:00
Ignore signalEndOfStream() error
This may be called at any time to interrupt the current encoding, including when MediaCodec is in an expected state.
This commit is contained in:
parent
b3b899372d
commit
d6772cc313
1 changed files with 5 additions and 1 deletions
|
|
@ -18,7 +18,11 @@ public class CaptureReset implements SurfaceCapture.CaptureListener {
|
|||
public synchronized void reset() {
|
||||
reset.set(true);
|
||||
if (runningMediaCodec != null) {
|
||||
runningMediaCodec.signalEndOfInputStream();
|
||||
try {
|
||||
runningMediaCodec.signalEndOfInputStream();
|
||||
} catch (IllegalStateException e) {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue