amstream: force use ptsserv when have parser. [1/1]
authorshihong.zheng <shihong.zheng@amlogic.com>
Mon, 31 Aug 2020 13:26:08 +0000 (21:26 +0800)
committerShihong Zheng <shihong.zheng@amlogic.com>
Thu, 3 Sep 2020 02:04:53 +0000 (19:04 -0700)
PD#SWPL-32519

Problem:
error in synchronization between Audio and video

Solution:
force use ptsserv when have parser.

Verify:
u215

Change-Id: I4dda61a459684e602a4ecd76fd6c8791c05ba6d4
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
drivers/stream_input/amports/streambuf.c

index 8243f5605e40ee6bafdb9f1dd342c7d1da746373..fe360f2627bee206152cb57682aded78b59df249 100644 (file)
@@ -298,6 +298,7 @@ s32 stbuf_init(struct stream_buf_s *buf, struct vdec_s *vdec)
                        return r;
        }
        addr32 = buf->buf_start & 0xffffffff;
+       buf->use_ptsserv = true;
        init_waitqueue_head(&buf->wq);
 
        /*