libdvr: Abnormal progress bar in radio recording playback [1/1]
PD#SWPL-68740
Problem:
In a radio recording playback, the playback and progress bar is abnormal.
Solution:
Enhance the processing of cache time returned from AmTsPlayer_getDelayTime.
Ignore the cache length at start phase of a plaback and adjust 'cur' value
of playback accordingly.
Verify:
Locally tested ok in AH212 environment.
Signed-off-by: Wentao.MA <wentao.ma@amlogic.com>
Change-Id: I656e421f6f86d0f08f06a7142bf0c2bb7c817253
diff --git a/include/dvr_playback.h b/include/dvr_playback.h
index 1d8a43d..b8f5cde 100644
--- a/include/dvr_playback.h
+++ b/include/dvr_playback.h
@@ -346,6 +346,11 @@
uint32_t limit; /**< rec data limit time in ms*/
//first play need seek to start time
uint32_t first_start_time;
+ //The segment id where a playback is initially started
+ uint64_t first_start_id;
+ //Determine whether it is needed to check the cache value from AmTsPlayer_getDelayTime
+ //It is only allowed to check cache one time in a single playback
+ DVR_Bool_t check_cache_flag;
DVR_Bool_t need_seek_start;
//init fake pid
int fake_pid;