dmx: Do timeshift than FF,the progress bar time display error. [2/3]
PD#SWPL-23655
Problem:
get delay time error.
Solution:
1. del check cache time.
2. add record state when send event.
3. add fffb play flag. if first set fffb speed,we will fffb at thread.
4. init fffb time and add last_cur_time. used last cur time to check
time is error.
5. change debug api.
6. deal pcr is discontinue when stream is loop.
7. set segment id when send rec event.
8. update store info when start next segment.
9. add del segment throw location api.
10. add segment luck when change segment.
11. del send notify time event.
Verify:
verified on 214.
Signed-off-by: hualing chen <hualing.chen@amlogic.com>
Change-Id: Ia3eaa0a629077f4ac01b8ec440a971dd840965e9
diff --git a/include/dvr_segment.h b/include/dvr_segment.h
index 7117be0..7d31f88 100644
--- a/include/dvr_segment.h
+++ b/include/dvr_segment.h
@@ -35,6 +35,14 @@
*/
int dvr_segment_get_list(const char *location, uint32_t *p_segment_nb, uint64_t **pp_segment_ids);
+/**\brief Del all info of segment whose location is "*location"
+ * \param[in] location The record of need del file's location
+ * \return DVR_SUCCESS On success
+ * \return Error code On failure
+ */
+int dvr_segment_del_by_location(const char *location);
+
+
/**\brief Get the segment's information
* \param[in] location The record file's location
* \param[in] segment_id The segment index