mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-19 11:03:01 +00:00
Restore the performance level fed into the AvcDecoder
This commit is contained in:
parent
6bb215eddf
commit
e52b85a883
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user