mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-10-26 14:00:08 +00:00
Suppress deprecation warnings for MediaCodecList APIs
This commit is contained in:
1 parent
b492ac43f8
commit
b19360ac75
1 file changed
+3
@@ -26,6 +26,9 @@ import android.media.MediaCodec.BufferInfo;
|
|||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
import android.view.SurfaceHolder;
|
import android.view.SurfaceHolder;
|
||||||
|
|
||||||
|
// Ignore warnings about deprecated MediaCodecList APIs in API level 21
|
||||||
|
// We don't care about any of the new codec types anyway.
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
public class MediaCodecDecoderRenderer implements VideoDecoderRenderer {
|
public class MediaCodecDecoderRenderer implements VideoDecoderRenderer {
|
||||||
|
|
||||||
private ByteBuffer[] videoDecoderInputBuffers;
|
private ByteBuffer[] videoDecoderInputBuffers;
|
||||||
|
|||||||
Reference in new issue
Block a user