amlhwdmx: CB1 remove size assert for secure scene [1/1]
PD#SWPL-184754
Problem:
play stuck when meet small es buf size
Solution:
remove size assert for secure scene
Verify:
(detail info)
Change-Id: I8b1214f37115ddc48b0bb185dc2e572fba7e43e6
Signed-off-by: xuesong.jiang <xuesong.jiang@amlogic.com>
diff --git a/aml-hwdemux/gstamladapterpipe.c b/aml-hwdemux/gstamladapterpipe.c
index 695d6f7..e063a63 100644
--- a/aml-hwdemux/gstamladapterpipe.c
+++ b/aml-hwdemux/gstamladapterpipe.c
@@ -104,6 +104,11 @@
pipe->status.poped_num = 0;
pipe->s.secure_ap.prob_peek_idx = 0;
+
+ /* unset clear assert for secure scene */
+ pipe->status.low_size = 0;
+ pipe->status.max_size = -1;
+ pipe->status.needed_size = 0;
}
else
{
@@ -115,6 +120,11 @@
pipe->status.poped_num = pipe->status.cur_num;
pipe->s.clear_ap.prob_peek_offset = 0;
+
+ /* unset secure assert for clear scene */
+ pipe->status.low_num = 0;
+ pipe->status.max_num = -1;
+ pipe->status.needed_num = 0;
}
return GST_FLOW_OK;