mirror of
https://github.com/followmsi/android_hardware_qcom_media.git
synced 2024-10-31 22:47:35 +00:00
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:
parent
2a7e797e05
commit
01e11e692e
1 changed files with 1 additions and 0 deletions
|
@ -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--;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue