Merge pull request #856 from IanDBird/dev

Make MediaCodecUtil.getMediaCodecInfo public
This commit is contained in:
ojw28 2015-10-09 12:40:33 +01:00
commit 2d967a1b6d

View file

@ -94,8 +94,15 @@ public final class MediaCodecUtil {
/**
* Returns the name of the best decoder and its capabilities for the given mimeType.
*
* @param mimeType The mime type.
* @param secure Whether the decoder is required to support secure decryption. Always pass false
* unless secure decryption really is required.
*
* @return The name of the best decoder and its capabilities for the given mimeType, or null if
* no decoder exists.
*/
private static synchronized Pair<String, CodecCapabilities> getMediaCodecInfo(
public static synchronized Pair<String, CodecCapabilities> getMediaCodecInfo(
String mimeType, boolean secure) throws DecoderQueryException {
CodecKey key = new CodecKey(mimeType, secure);
if (codecs.containsKey(key)) {