mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-04-08 08:56:10 +00:00
Ensure MediaCodecHelper is initialized before evaluating codecs
This commit is contained in:
@@ -134,6 +134,10 @@ public class StreamSettings extends Activity {
|
||||
}
|
||||
}
|
||||
|
||||
// This must be called to do runtime initialization before calling functions that evaluate
|
||||
// decoder lists.
|
||||
MediaCodecHelper.initialize(getContext(), GlPreferences.readPreferences(getContext()).glRenderer);
|
||||
|
||||
MediaCodecInfo avcDecoder = MediaCodecHelper.findProbableSafeDecoder("video/avc", -1);
|
||||
MediaCodecInfo hevcDecoder = MediaCodecHelper.findProbableSafeDecoder("video/hevc", -1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user