mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-06-17 14:21:08 +00:00
Don't throw exceptions during codec recovery
This commit is contained in:
@@ -601,8 +601,8 @@ public class MediaCodecDecoderRenderer extends VideoDecoderRenderer implements C
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only throw if we're not stopping
|
// Only throw if we're not stopping and aren't in the middle of codec recovery
|
||||||
if (!stopping) {
|
if (!stopping && !needsReset && !needsRestart) {
|
||||||
//
|
//
|
||||||
// There seems to be a race condition with decoder/surface teardown causing some
|
// There seems to be a race condition with decoder/surface teardown causing some
|
||||||
// decoders to to throw IllegalStateExceptions even before 'stopping' is set.
|
// decoders to to throw IllegalStateExceptions even before 'stopping' is set.
|
||||||
|
|||||||
Reference in New Issue
Block a user