From 63f5c4559ecd693f230ef490254decb9ca5e514d Mon Sep 17 00:00:00 2001 From: Rico Yang Date: Wed, 11 Sep 2019 03:40:17 -0400 Subject: [PATCH] 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 --- drivers/amlogic/media/video_sink/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/amlogic/media/video_sink/video.c b/drivers/amlogic/media/video_sink/video.c index a31bd02..e9692c6 100644 --- a/drivers/amlogic/media/video_sink/video.c +++ b/drivers/amlogic/media/video_sink/video.c @@ -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 && -- 2.7.4