amstream: fix crash when update ext stbuf metainfo. [1/1]
authorshihong.zheng <shihong.zheng@amlogic.com>
Thu, 10 Sep 2020 09:18:51 +0000 (17:18 +0800)
committerHui Zhang <hui.zhang@amlogic.com>
Thu, 15 Oct 2020 08:33:05 +0000 (01:33 -0700)
commit558b13f3fc1199d790425e229926b8dde8fb778e
tree487fdae203e02c785012878300d0c82d3fe93e8c
parent6a2bafdce90116cbbb21e34bd6a428a4a7aaba3f
amstream: fix crash when update ext stbuf metainfo. [1/1]

PD#SWPL-33180

Problem:
1. fix crash when update ext stbuf metainfo.
2. delay put fd cause playback stuck.

Solution:
1. add some null check for metainfo update.
2. If it is the single instance that the pipeline of DTV used,
   then have to check that the resources which is work on the
   tunnel are being released.

Verify:
ah212

Change-Id: Iaa68a6c2b4fcd0b8dbea30603c2d6e4e3463160e
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
drivers/frame_provider/decoder/utils/vdec.c
drivers/frame_provider/decoder/utils/vdec.h
drivers/stream_input/amports/amstream.c