amvideo: omx consecutive drop should happen only after omx_run is true [1/1]
authorRico Yang <wei.yang@amlogic.com>
Wed, 11 Sep 2019 07:40:17 +0000 (03:40 -0400)
committerTao Zeng <tao.zeng@amlogic.com>
Wed, 18 Sep 2019 05:56:25 +0000 (22:56 -0700)
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>
drivers/amlogic/media/video_sink/video.c

index a31bd02..e9692c6 100644 (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 &&