libdvr: when adjust the size more than 1 time PVR can't playing [1/1]

PD#OTT-39917
PD#SWPL-119694

Problem:
Cannot repeatedly playback a recording. Dtvkitserver crashes always.

Solution:
Fix a libdvr defect. With the fix, libdvr can recognize an error condition
earlier and handle it properly without propagating it to subsequent process.

Verify:
Tested pass on S805C3 Zapper+.

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