mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-23 17:13:07 +08:00
[vproc]: Add iep open check to avoid noisy log
Change-Id: I2d2aa49ce4ba9fe2b80dd72b60c286ffd2115195 Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
@@ -271,7 +271,13 @@ static void mpp_dec_put_frame(Mpp *mpp, RK_S32 index, HalDecTaskFlag flags)
|
|||||||
mpp_buf_slot_get_prop(slots, index, SLOT_FRAME_PTR, &frame);
|
mpp_buf_slot_get_prop(slots, index, SLOT_FRAME_PTR, &frame);
|
||||||
if (mpp_frame_get_mode(frame) && dec->enable_deinterlace &&
|
if (mpp_frame_get_mode(frame) && dec->enable_deinterlace &&
|
||||||
NULL == dec->vproc) {
|
NULL == dec->vproc) {
|
||||||
dec_vproc_init(&dec->vproc, mpp);
|
MPP_RET ret = dec_vproc_init(&dec->vproc, mpp);
|
||||||
|
if (ret) {
|
||||||
|
// When iep is failed to open disable deinterlace function to
|
||||||
|
// avoid noisy log.
|
||||||
|
dec->enable_deinterlace = 0;
|
||||||
|
dec->vproc = NULL;
|
||||||
|
} else
|
||||||
dec_vproc_start(dec->vproc);
|
dec_vproc_start(dec->vproc);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user