| 246 | } |
| 247 | |
| 248 | int MediaCodec_Decoder::stop() { |
| 249 | JniEnv jniEnv{}; |
| 250 | |
| 251 | JNIEnv *env = jniEnv.getEnv(); |
| 252 | if (env == nullptr) { |
| 253 | return MC_ERROR; |
| 254 | } |
| 255 | |
| 256 | if (mMediaCodec == nullptr) { |
| 257 | return MC_ERROR; |
| 258 | } |
| 259 | |
| 260 | int ret = env->CallIntMethod(mMediaCodec, jMediaCodec_stop); |
| 261 | |
| 262 | return ret; |
| 263 | } |
| 264 | |
| 265 | int MediaCodec_Decoder::release() { |
| 266 | JniEnv jniEnv{}; |
nothing calls this directly
no test coverage detected