| 229 | } |
| 230 | |
| 231 | int MediaCodec_Decoder::flush() { |
| 232 | JniEnv jniEnv{}; |
| 233 | |
| 234 | JNIEnv *env = jniEnv.getEnv(); |
| 235 | if (env == nullptr) { |
| 236 | return MC_ERROR; |
| 237 | } |
| 238 | |
| 239 | if (mMediaCodec == nullptr) { |
| 240 | return MC_ERROR; |
| 241 | } |
| 242 | |
| 243 | int ret = env->CallIntMethod(mMediaCodec, jMediaCodec_flush); |
| 244 | |
| 245 | return ret; |
| 246 | } |
| 247 | |
| 248 | int MediaCodec_Decoder::stop() { |
| 249 | JniEnv jniEnv{}; |
no test coverage detected