amvideo: omx consecutive drop should happen only after omx_run is true [1/1]

PD#SWPL-13232

Problem:
amvideo drops excessive video frames than it should drop

Solution:
drop only after omx_run is true

Verify:
verified on Franklin

Change-Id: Iacb8f23c9635d00ce6265a0228c1e1e458902c6a
Signed-off-by: Rico Yang <wei.yang@amlogic.com>
This commit is contained in:
Rico Yang
2019-09-11 03:40:17 -04:00
committed by Tao Zeng
parent 270cbf3b28
commit 63f5c4559e

View File

@@ -7225,7 +7225,7 @@ static irqreturn_t vsync_isr_in(int irq, void *dev_id)
vf->pts, vf->omx_index,
timestamp_pcrscr_get(), timestamp_vpts_get());
}
if (omx_continuous_drop_flag
if ((omx_continuous_drop_flag && omx_run)
&& !(debug_flag
& DEBUG_FLAG_OMX_DISABLE_DROP_FRAME)) {
if (is_dolby_vision_enable() && vf &&