pipvideo: fix cur_pipbuf not set to NULL when disable video before unreg [1/1]
authorjintao xu <jintao.xu@amlogic.com>
Fri, 31 May 2019 06:33:13 +0000 (14:33 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Tue, 4 Jun 2019 02:22:18 +0000 (19:22 -0700)
commit768040fd56e5d327c0e1bb7b2f82c2fcf2e2e8cd
treeb670b7aa98add5bdb7f2896ce288161774f1161c
parent86db0fd0e29d3f4c45a73a88452892707ed1f556
pipvideo: fix cur_pipbuf not set to NULL when disable video before unreg [1/1]

PD#OTT-4262

Problem:
When disable video before unreg, cur_pipbuf will not set to NULL.
Next time playback will tog this buffer.

Solution:
Free cur_pipbuf when vd2 is closed in unreg.

Verify:
U212

Change-Id: Ie381ae9feda8a5d23a93b3a5974d9c0af87e6d6e
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
drivers/amlogic/media/video_sink/video.c