Suppress deprecation warnings for MediaCodecList APIs

This commit is contained in:
Cameron Gutman 2014-10-17 14:27:33 -07:00
parent b492ac43f8
commit b19360ac75

View File

@ -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;