return MC_PARAM_ERROR;
MEDIACODEC_CHECK_CONDITION(mc_handle->codec_id && mc_handle->is_video && !mc_handle->is_encoder,
- MEDIACODEC_ERROR_INVALID_PARAMETER, "MEDIACODEC_ERROR_INVALID_PARAMETER");
+ MC_INVALID_ARG, "MEDIACODEC_ERROR_INVALID_PARAMETER");
mc_handle->info.decoder.width = width;
mc_handle->info.decoder.height = height;
return MC_PARAM_ERROR;
MEDIACODEC_CHECK_CONDITION(mc_handle->codec_id && mc_handle->is_video && mc_handle->is_encoder,
- MEDIACODEC_ERROR_INVALID_PARAMETER, "MEDIACODEC_ERROR_INVALID_PARAMETER");
+ MC_INVALID_ARG, "MEDIACODEC_ERROR_INVALID_PARAMETER");
mc_handle->info.encoder.width = width;
mc_handle->info.encoder.height = height;
return MC_PARAM_ERROR;
MEDIACODEC_CHECK_CONDITION(mc_handle->codec_id && !mc_handle->is_video && !mc_handle->is_encoder,
- MEDIACODEC_ERROR_INVALID_PARAMETER, "MEDIACODEC_ERROR_INVALID_PARAMETER");
+ MC_INVALID_ARG, "MEDIACODEC_ERROR_INVALID_PARAMETER");
mc_handle->info.decoder.samplerate = samplerate;
mc_handle->info.decoder.channel = channel;
return MC_PARAM_ERROR;
MEDIACODEC_CHECK_CONDITION(mc_handle->codec_id && !mc_handle->is_video && mc_handle->is_encoder,
- MEDIACODEC_ERROR_INVALID_PARAMETER, "MEDIACODEC_ERROR_INVALID_PARAMETER");
+ MC_INVALID_ARG, "MEDIACODEC_ERROR_INVALID_PARAMETER");
mc_handle->info.encoder.samplerate = samplerate;
mc_handle->info.encoder.channel = channel;