From 435ded217d29d7e050cb48c3f0fd92268c43a2d5 Mon Sep 17 00:00:00 2001 From: Nanxin Qin Date: Wed, 23 Aug 2017 14:42:54 +0800 Subject: [PATCH] frame_sync: fixed the issure of the player that starts slowly [2/2] PD#148146: modify checkin_firstvpts to 0xffffffff Change-Id: I16d75f8cd0f7ed7582f731db42bc247c49580974 Signed-off-by: Nanxin Qin --- drivers/amlogic/media/frame_sync/ptsserv.c | 4 ++++ drivers/amlogic/media/frame_sync/timestamp.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/amlogic/media/frame_sync/ptsserv.c b/drivers/amlogic/media/frame_sync/ptsserv.c index 30fc69c..dc81933 100644 --- a/drivers/amlogic/media/frame_sync/ptsserv.c +++ b/drivers/amlogic/media/frame_sync/ptsserv.c @@ -1317,6 +1317,10 @@ int pts_stop(u8 type) if (type == PTS_TYPE_AUDIO) timestamp_apts_set(-1); + + if (type == PTS_TYPE_VIDEO || type == PTS_TYPE_HEVC) + timestamp_checkin_firstvpts_set(0xffffffff); + tsync_mode_reinit(); return 0; diff --git a/drivers/amlogic/media/frame_sync/timestamp.c b/drivers/amlogic/media/frame_sync/timestamp.c index f85f8e7..a6b6812 100644 --- a/drivers/amlogic/media/frame_sync/timestamp.c +++ b/drivers/amlogic/media/frame_sync/timestamp.c @@ -32,7 +32,7 @@ static u32 system_time_up; static u32 audio_pts_up; static u32 audio_pts_started; static u32 first_vpts; -static u32 first_checkin_vpts; +static u32 first_checkin_vpts = 0xffffffff; static u32 first_apts; static u32 system_time_scale_base = 1; -- 2.7.4