mm-video-v4l2: Decrement input heap buffer counter for free_buffer

When OMX component transitions from
OMX_StateIdle -> OMX_StateLoaded -> OMX_StateIdle,
if OMX client submitting new set of buffers while
OMX_StateLoaded->OMX_StateIdle transition, use_buffer failure is observed.
Decrement input heap buffer counter while freeing buffers.

Change-Id: I5d98d701d8ede62a8a98dff4a7cd98335dc916ce
CRs-Fixed: 1094101
This commit is contained in:
Srinu Gorle 2016-11-29 19:38:55 +05:30 committed by Gerrit - the friendly Code Review server
parent 2a7e797e05
commit 01e11e692e

View file

@ -6306,6 +6306,7 @@ OMX_ERRORTYPE omx_vdec::free_input_buffer(OMX_BUFFERHEADERTYPE *bufferHdr)
#ifdef USE_ION
free_ion_memory(&drv_ctx.ip_buf_ion_info[index]);
#endif
m_in_alloc_cnt--;
}
}