if ((node->video_blocking) && (node->amlvideo2_pool_ready != NULL)) {
vfq_init(&node->q_ready,
- node->amlvideo2_pool_size + 1,
+ node->amlvideo2_pool_size,
(struct vframe_s **)&(node->amlvideo2_pool_ready[0]));
node->video_blocking = false;
node->tmp_vf = NULL;
case VFRAME_EVENT_PROVIDER_REG:
node->video_blocking = false;
vfq_init(&node->q_ready,
- node->amlvideo2_pool_size + 1,
+ node->amlvideo2_pool_size,
(struct vframe_s **)&(node->amlvideo2_pool_ready[0]));
break;
case VFRAME_EVENT_PROVIDER_UNREG:
}
if (vid_node->amlvideo2_pool_ready != NULL) {
vfq_init(&vid_node->q_ready,
- vid_node->amlvideo2_pool_size + 1,
+ vid_node->amlvideo2_pool_size,
(struct vframe_s **)&(vid_node->amlvideo2_pool_ready[0]));
}
vid_node->context = create_ge2d_work_queue();