mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-21 03:52:48 +00:00
Try allowing decoder exceptions after initial start since we shouldn't throw on stop anymore
This commit is contained in:
parent
d7c6f63592
commit
e199fcd2d9
@ -287,7 +287,7 @@ public class MediaCodecDecoderRenderer extends VideoDecoderRenderer {
|
|||||||
|
|
||||||
// Only throw if this happens at the beginning of a stream
|
// Only throw if this happens at the beginning of a stream
|
||||||
// but not if we're stopping
|
// but not if we're stopping
|
||||||
if (totalFrames > 0 && totalFrames < 20 && !stopping) {
|
if (totalFrames > 0 && !stopping) {
|
||||||
if (buf != null || codecFlags != 0) {
|
if (buf != null || codecFlags != 0) {
|
||||||
throw new RendererException(this, e, buf, codecFlags);
|
throw new RendererException(this, e, buf, codecFlags);
|
||||||
}
|
}
|
||||||
@ -461,7 +461,7 @@ public class MediaCodecDecoderRenderer extends VideoDecoderRenderer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (i == 25 && totalFrames > 0 && totalFrames < 20 && !stopping) {
|
if (i == 25 && totalFrames > 0 && !stopping) {
|
||||||
throw new RendererException(this, lastException, null, codecFlags);
|
throw new RendererException(this, lastException, null, codecFlags);
|
||||||
}
|
}
|
||||||
else if (i != 25) {
|
else if (i != 25) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user