libdvr: Playback duration of the recorded file is not correct [1/1]

PD#SWPL-109031

Problem:
Recording playback teminates far earlier than expect under "speed control"
and multiple segments recording conditions. Unsigned "ply_dur"/"ply_sta"
of DVR_PlaybackConSpe_t can overflow during segment switch which causes
playback problem.

Solution:
1. Fix the overflow by changing their types to signed int.
2. Reset DVR_PlaybackConSpe_t during segment switch.

Verify:
Locally tested OK in AndroidT/AndroidR environment.

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