标签: android multithreading android-5.0-lollipop mediacodec
在Android中,我尝试在主线程中使用 MediaCodec api (MediaCodecList.getCodecCount())似乎正常运行,没有任何问题。但是当我在子线程中使用时,同样的api最终导致应用程序崩溃。
(MediaCodecList.getCodecCount())
崩溃日志如下所述:
A / libc(18571):致命信号11(SIGSEGV),代码1,故障地址0xe0 in tid 18600
上述方案已使用 Andriod 5.0.2 移动设备进行测试。
为什么会有这样的行为和想法来解决这个问题?