Merge "avsync-lib: refine IPTV_MODE support [2/3]"
diff --git a/src/avsync.c b/src/avsync.c
index 6d6bca1..d0b8fa5 100644
--- a/src/avsync.c
+++ b/src/avsync.c
@@ -972,11 +972,16 @@
avsync->session_id, systime, fpts);
msync_session_set_video_dis(avsync->fd, fpts);
avsync->last_disc_pts = fpts;
+ if (avsync->mode == AV_SYNC_MODE_VMASTER) {
+ systime = fpts;
+ avsync->last_r_syst = -1;
+ }
}
if ((int)(systime - fpts) > 0) {
if ((int)(systime - fpts) < avsync->disc_thres_max) {
/* catch up PCR */
+ avsync->last_r_syst = -1;
return true;
} else {
/* render according to FPS */