MediaCas: fixes for playback tests
- Set crypto mode to kMode_AES_CTR, since kMode_AES_CBC is not defined on Java API, and is rejected when the sample is queued to MediaCodec. - Wrap the plugin object in a RefBase, and hold a strong ref to it when executing any API calls in CasImpl. This is needed because CasImpl could be released by Java API, while MediaCodec native is still trying to access it. - Fix build warnings. Tests: cts-tradefed run cts-dev --module CtsMediaTestCases --test android.media.cts.ClearKeySystemTest It should not fail. bug: 22804304 Change-Id: Id4ef037d57dd741d2bb22b1de3d04c8d078b69fb
Loading
Please register or sign in to comment