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