msm: vidc: Release scratch buffers of size 0 during reconfig
Release the existing scratch buffers instead of reuse, provided the new buffer requirements is of size zero. For ex, scratch buffer for interlace clips is zero. Change-Id: Ic540839f1b5f8063ae5a1e4eda6df90b60b49af5
This commit is contained in:
parent
36f3788ea4
commit
b28166cbf0
@ -5150,6 +5150,7 @@ static enum hal_buffer scratch_buf_sufficient(struct msm_vidc_inst *inst,
|
||||
|
||||
list_for_each_entry(buf, &inst->scratchbufs.list, list) {
|
||||
if (buf->buffer_type == buffer_type &&
|
||||
bufreq->buffer_size &&
|
||||
buf->smem.size >= bufreq->buffer_size)
|
||||
count++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user