commit | 353809ece723d36801aa1acebed90cb3489102c0 | [log] [tgz] |
---|---|---|
author | Song Zhao <song.zhao@amlogic.com> | Tue Oct 20 18:03:54 2020 -0700 |
committer | Song Zhao <song.zhao@amlogic.com> | Tue Oct 20 18:03:54 2020 -0700 |
tree | a7fc63372d89581c89df9d5d1f97c151966391c8 | |
parent | 2c94a04ea9d8b500af0a6e9c49add9e61e2d3e20 [diff] |
avsync: pause will also take effect on main video Change-Id: Ifcbe49aaf451906bb31caf1c7607e6170a7b315f
diff --git a/avsync-lib/src/avsync.c b/avsync-lib/src/avsync.c index dc64afa..9cd0c0b 100644 --- a/avsync-lib/src/avsync.c +++ b/avsync-lib/src/avsync.c
@@ -441,6 +441,9 @@ bool expire = false; uint32_t pts_correction = avsync->delay * avsync->vsync_interval; + if (avsync->paused) + return false; + if (!fpts) { if (avsync->last_frame) { /* try to accumulate duration as PTS */