mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-02-16 02:20:55 +00:00
Restore the performance level fed into the AvcDecoder
This commit is contained in:
@@ -73,7 +73,7 @@ public class CpuDecoderRenderer implements DecoderRenderer {
|
||||
this.renderTarget = renderTarget;
|
||||
this.perfLevel = findOptimalPerformanceLevel();
|
||||
|
||||
int err = AvcDecoder.init(width, height, MED_PERF);
|
||||
int err = AvcDecoder.init(width, height, perfLevel);
|
||||
if (err != 0) {
|
||||
throw new IllegalStateException("AVC decoder initialization failure: "+err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user