libdvr: Images stoped when playing DTV [1/1]

PD#TV-72981
PD#SWPL-113742

Problem:
Live play is easy to stop in an unstable DVB signal environment.
In an unstable DVB signal environment, timeshift is easy to stop then restart
frequently upon signal lost/gain. One of the libdvr linked lists related to
segments is not cleaned properly in timeshift stopping process. Under such
condition, libdvr regards deleted segments as normal ones so that total
counted timeshift size is far bigger than actual size and triggers a recent
introduced total size guard mechanism to discard coming recoming recording
data. As a result, without any new recording data, timeshfit live play stops.

Solution:
Clean the mentioned linked list in timeshift stopping process.

Verify:
FAE tests pass in Amazon HAZEL environment.

Signed-off-by: Wentao.MA <wentao.ma@amlogic.com>
Change-Id: I583d8c6cb11cf7cd4fcd5d0601cb67f4d6e2b688
2 files changed
tree: 3660479b9ecff4058591a66b2dec290e6341a911
  1. include/
  2. src/
  3. test/
  4. Android.bp
  5. Android.mk
  6. Doxyfile
  7. LICENSE
  8. Makefile