| 212 | } |
| 213 | |
| 214 | int MediaCodec_Decoder::start() { |
| 215 | JniEnv jniEnv{}; |
| 216 | |
| 217 | JNIEnv *env = jniEnv.getEnv(); |
| 218 | if (env == nullptr) { |
| 219 | return MC_ERROR; |
| 220 | } |
| 221 | |
| 222 | if (mMediaCodec == nullptr) { |
| 223 | return MC_ERROR; |
| 224 | } |
| 225 | |
| 226 | int ret = env->CallIntMethod(mMediaCodec, jMediaCodec_start); |
| 227 | |
| 228 | return ret; |
| 229 | } |
| 230 | |
| 231 | int MediaCodec_Decoder::flush() { |
| 232 | JniEnv jniEnv{}; |
nothing calls this directly
no test coverage detected