mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-04-08 17:06:19 +00:00
Fix recovery timeout if no output frames are being received
This commit is contained in:
@@ -783,12 +783,14 @@ public class MediaCodecDecoderRenderer extends VideoDecoderRenderer implements C
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
handleDecoderException(e);
|
handleDecoderException(e);
|
||||||
}
|
}
|
||||||
} finally {
|
|
||||||
doCodecRecoveryIfRequired(CR_FLAG_CHOREOGRAPHER);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Attempt codec recovery even if we have nothing to render right now. Recovery can still
|
||||||
|
// be required even if the codec died before giving any output.
|
||||||
|
doCodecRecoveryIfRequired(CR_FLAG_CHOREOGRAPHER);
|
||||||
|
|
||||||
// Request another callback for next frame
|
// Request another callback for next frame
|
||||||
Choreographer.getInstance().postFrameCallback(this);
|
Choreographer.getInstance().postFrameCallback(this);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user