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)
committerNick Xie <nick@khadas.com>
Mon, 5 Aug 2019 06:43:00 +0000 (14:43 +0800)
commit26fa2cd4ad1ed471eb741580c19b2aba844f834b
tree550437b72ad1162b875d6c628f5bac13322d2ba5
parentc9c62a0baf88472a50ccf0b19bc28a0c0b3ae776
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