video: clear omx_pts_set_index when session switch [1/1]
authorshuanglong.wang <shuanglong.wang@amlogic.com>
Mon, 23 Sep 2019 08:37:08 +0000 (16:37 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Wed, 9 Oct 2019 01:20:52 +0000 (18:20 -0700)
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 <shuanglong.wang@amlogic.com>
drivers/amlogic/media/video_sink/video.c

index 153a26a34b74808aaa2a24f699d06288dd406b0a..a04ba145ce5b124fe9ebe4b9fc934b022a250a8c 100644 (file)
@@ -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;
                }
        }