mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-21 12:03:02 +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.renderTarget = renderTarget;
|
||||||
this.perfLevel = findOptimalPerformanceLevel();
|
this.perfLevel = findOptimalPerformanceLevel();
|
||||||
|
|
||||||
int err = AvcDecoder.init(width, height, MED_PERF);
|
int err = AvcDecoder.init(width, height, perfLevel);
|
||||||
if (err != 0) {
|
if (err != 0) {
|
||||||
throw new IllegalStateException("AVC decoder initialization failure: "+err);
|
throw new IllegalStateException("AVC decoder initialization failure: "+err);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user