LF-984:[8QM_MEK/8QXP_MEK]mxc:vpu_malone:report error event when the resolution beyond limit
If the resolution is too bit to support, driver should report an error event, so application can do the cancel flow Signed-off-by: Ming Qian <ming.qian@nxp.com> Acked-by: Shijie Qin <shijie.qin@nxp.com>5.4-rM2-2.2.x-imx-squashed
parent
2342e62536
commit
e883611a57
|
@ -4298,8 +4298,10 @@ static void vpu_api_event_handler(struct vpu_ctx *ctx, u_int32 uStrIdx, u_int32
|
|||
int wait_times = 0;
|
||||
|
||||
get_seq_info(&info, event_data, &pSeqInfo[ctx->str_index]);
|
||||
if (!check_seq_info_is_valid(ctx->str_index, &info))
|
||||
if (!check_seq_info_is_valid(ctx->str_index, &info)) {
|
||||
vpu_dec_event_decode_error(ctx);
|
||||
break;
|
||||
}
|
||||
|
||||
while (ctx->wait_res_change_done && wait_times++ < 100) {
|
||||
if (!vpu_dec_is_active(ctx))
|
||||
|
|
Loading…
Reference in New Issue