mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-29 19:52:06 +08:00
[mpp_dec]: fix stall on internal buffer mode
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@433 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
@@ -773,9 +773,14 @@ MPP_RET mpp_buf_slot_set_prop(MppBufSlots slots, RK_S32 index, SlotPropType type
|
||||
*/
|
||||
generate_info_set(impl, frame);
|
||||
if (mpp_frame_info_cmp(impl->info, impl->info_set)) {
|
||||
MppFrameImpl *old = (MppFrameImpl *)impl->info;
|
||||
// info change found here
|
||||
impl->info_changed = 1;
|
||||
mpp_log("info change found\n");
|
||||
mpp_log("old width %4d height %4d stride hor %4d ver %4d\n",
|
||||
old->width, old->height, old->hor_stride, old->ver_stride);
|
||||
mpp_log("new width %4d height %4d stride hor %4d ver %4d\n",
|
||||
dst->width, dst->height, dst->hor_stride, dst->ver_stride);
|
||||
}
|
||||
} break;
|
||||
case SLOT_BUFFER: {
|
||||
|
||||
@@ -182,10 +182,12 @@ void *mpp_dec_parser_thread(void *data)
|
||||
parser->wait();
|
||||
parser->unlock();
|
||||
|
||||
wait.dec_pic_buf = (mpp_buffer_group_unused(mpp->mFrameGroup) < 1);
|
||||
if (mpp->mFrameGroup) {
|
||||
wait.dec_pic_buf = (mpp_buffer_group_unused(mpp->mFrameGroup) < 1);
|
||||
if (wait.dec_pic_buf)
|
||||
continue;
|
||||
}
|
||||
|
||||
if(wait.dec_pic_buf)
|
||||
continue;
|
||||
/*
|
||||
* 1. get task handle from hal for parsing one frame
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user