libdvr: Play the PVR file, it does not start from the 00:00 position. [1/1]
PD#SWPL-58829
Problem:
Play the PVR file, it does not start from the 00:00 position
Solution:
1 seek to first play pos if update audio pid when first update.
Verify:
t5
Signed-off-by: hualing chen <hualing.chen@amlogic.com>
Change-Id: If2bdda1e78ff590818d2dee08d867ac2c5ca03d4
diff --git a/include/dvr_playback.h b/include/dvr_playback.h
index da00f24..68b0b1a 100644
--- a/include/dvr_playback.h
+++ b/include/dvr_playback.h
@@ -333,6 +333,9 @@
int obsolete; /**< rec obsolete time in ms*/
uint64_t rec_start; /**< rec start time in ms*/
int limit; /**< rec data limit time in ms*/
+ //first play need seek to start time
+ uint64_t first_start_time;
+ DVR_Bool_t need_seek_start;
} DVR_Playback_t;
/**\endcond*/