From b36fdbfc41869c37e691c036d7077bebc76598f4 Mon Sep 17 00:00:00 2001 From: "shuanglong.wang" Date: Mon, 23 Sep 2019 16:37:08 +0800 Subject: [PATCH] video: clear omx_pts_set_index when session switch [1/1] PD#SWPL-13597 Problem: av diff over 200ms after seek when test AL1 ep sync Solution: clear omx_pts_set_index when session switch that new playback, drop old index, new index will update asap when set_omx_pts invoked. Verify: verify by skb nts Change-Id: I5f46338d46524ceb9a4e907cf9db07ff2e373a08 Signed-off-by: shuanglong.wang --- drivers/amlogic/media/video_sink/video.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/amlogic/media/video_sink/video.c b/drivers/amlogic/media/video_sink/video.c index 153a26a34b74..a04ba145ce5b 100644 --- a/drivers/amlogic/media/video_sink/video.c +++ b/drivers/amlogic/media/video_sink/video.c @@ -9576,6 +9576,7 @@ static void set_omx_pts(u32 *p) mutex_unlock(&omx_mutex); pr_info("check session return: tmp_pts %d" "session=0x%x\n", tmp_pts, omx_cur_session); + omx_pts_set_index = 0; return; } } -- 2.20.1