libdvr: unplug HDD when recording channel,plug HDD,no files in the PVR list. [1/1]

PD#SWPL-65538

Problem:
Get segment info error,if we unplug device when recording,segment all info file
is not store segment ifo, only store info when stop segment record.

Solution:
1 if all info file open error.we will open sub info file to load info
and to play file.

Verify:
t5

Signed-off-by: hualing chen <hualing.chen@amlogic.com>
Change-Id: I290b65e5542a71b96bb95a704ba73a0eb48cd10f
diff --git a/src/segment.c b/src/segment.c
index 58866f7..e0c11eb 100644
--- a/src/segment.c
+++ b/src/segment.c
@@ -146,6 +146,7 @@
     p_ctx->index_fp = fopen(index_fname, "w+");
     p_ctx->dat_fp = fopen(dat_fname, "w+");
     p_ctx->all_dat_fp = fopen(all_dat_fname, "a+");
+    DVR_DEBUG(1, "%s dir %s is opened", __func__, all_dat_fname);
     p_ctx->ongoing_fp = fopen(going_name, "w+");
     p_ctx->first_pts = ULLONG_MAX;
     p_ctx->last_pts = ULLONG_MAX;