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)
committerJianxin Pan <jianxin.pan@amlogic.com>
Fri, 27 Sep 2019 11:50:06 +0000 (04:50 -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 acf7c35..4181ede 100644 (file)
@@ -9649,6 +9649,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;
                }
        }