mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-06-16 22:01:14 +00:00
Only propagate a decoder exception if it happens at the beginning of a stream
This commit is contained in:
@@ -134,6 +134,8 @@ public class MediaCodecDecoderRenderer extends EnhancedDecoderRenderer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Only throw if this happens at the beginning of a stream
|
||||||
|
if (totalFrames < 60) {
|
||||||
if (buf != null || codecFlags != 0) {
|
if (buf != null || codecFlags != 0) {
|
||||||
throw new RendererException(this, e, buf, codecFlags);
|
throw new RendererException(this, e, buf, codecFlags);
|
||||||
}
|
}
|
||||||
@@ -141,6 +143,7 @@ public class MediaCodecDecoderRenderer extends EnhancedDecoderRenderer {
|
|||||||
throw new RendererException(this, e);
|
throw new RendererException(this, e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void startDirectSubmitRendererThread()
|
private void startDirectSubmitRendererThread()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user