| 263 | } |
| 264 | |
| 265 | int MediaCodec_Decoder::release() { |
| 266 | JniEnv jniEnv{}; |
| 267 | |
| 268 | JNIEnv *env = jniEnv.getEnv(); |
| 269 | if (env == nullptr) { |
| 270 | return MC_ERROR; |
| 271 | } |
| 272 | |
| 273 | if (mMediaCodec == nullptr) { |
| 274 | return MC_ERROR; |
| 275 | } |
| 276 | |
| 277 | int ret = env->CallIntMethod(mMediaCodec, jMediaCodec_release); |
| 278 | |
| 279 | return ret; |
| 280 | } |
| 281 | |
| 282 | int MediaCodec_Decoder::dequeueInputBufferIndex(int64_t timeoutUs) { |
| 283 | JniEnv jniEnv{}; |
nothing calls this directly
no test coverage detected