amlv4l2dec: CB1 play stuck [1/1]
PD#SWPL-182658
Problem:
other buffer pool's init count is too small, switch failed
Solution:
set init count=4
Verify:
ap222
Change-Id: Ibbe21bfcacc284a704eef6083db71b2cfd022bb3
Signed-off-by: hanghang.luo <hanghang.luo@amlogic.com>
diff --git a/src/gstamlv4l2object.c b/src/gstamlv4l2object.c
index 12b440c..a8dab8c 100644
--- a/src/gstamlv4l2object.c
+++ b/src/gstamlv4l2object.c
@@ -5621,10 +5621,11 @@
if (obj->old_other_pool || obj->old_old_other_pool) //jxsdbg for switching
{
obj->outstanding_buf_num = gst_aml_v4l2_object_get_outstanding_capture_buf_num(obj);
- //when doing resolution changed,set new other buffer pool count to 1
+ //when doing resolution changed,set new other buffer pool count to 4
//the buffer pool count will increase after buffer released
+ //it ensures that all display's buffers can be returned for Setting to 4
if (obj->outstanding_buf_num > 0) {
- other_min = other_max = 1;
+ other_min = other_max = 4;
}
GST_DEBUG_OBJECT(obj, "oop:%p, ooop:%p, outstanding buf num:%d, set min, max to %d,%d",
obj->old_other_pool, obj->old_old_other_pool,