tsync: fix video not smooth in vmaster mode [1/1]
authorChao Liu <chao.liu@amlogic.com>
Thu, 21 Nov 2019 02:44:27 +0000 (10:44 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Mon, 23 Dec 2019 09:32:19 +0000 (02:32 -0700)
commit69ad8c580cf94d249159ea0993ee5f724286db8d
tree2e6c28d2331dd910a780c9b09e10fa89fdd860f0
parent8292b3d21dc1a372e8b8340dca5a811dbda1dedd
tsync: fix video not smooth in vmaster mode [1/1]

PD#SWPL-15541

Problem:
video not smooth during playing dvb demo source.
When tsync in vmaster mode, the pcrscr increase video in every vsync,
no matter whether video buffer is enough or not.

Solution:
When underflow occurs, if tsync in vmaster mode, decrease pcrscr pts.
This will increase the buffer time and make playback smooth

Verify:
AC214

Change-Id: Ief0fc8aa1c79a48cfc6f2d6bb6964a8b193b7bf9
Signed-off-by: Chao Liu <chao.liu@amlogic.com>
drivers/amlogic/media/frame_sync/timestamp.c
drivers/amlogic/media/frame_sync/tsync.c
drivers/amlogic/media/video_sink/video.c