From: shuanglong.wang Date: Mon, 23 Sep 2019 08:37:08 +0000 (+0800) Subject: video: clear omx_pts_set_index when session switch [1/1] X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b36fdbfc41869c37e691c036d7077bebc76598f4;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 --- 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; } }