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
diff --git a/include/dvr_playback.h b/include/dvr_playback.h
index 276e0a6..a811c0d 100644
--- a/include/dvr_playback.h
+++ b/include/dvr_playback.h
@@ -310,7 +310,7 @@
DVR_PlaybackCmdInfo_t cmd; /**< playback cmd*/
int offset; /**< segment read offset*/
uint32_t dur; /**< segment dur*/
- Segment_Handle_t r_handle; /**< playback current segment handle*/
+ Segment_Handle_t segment_handle; /**< playback current segment handle*/
DVR_PlaybackOpenParams_t openParams; /**< playback openParams*/
DVR_Bool_t has_video; /**< has video playing*/
DVR_Bool_t has_audio; /**< has audio playing*/