dataout: fix for pids update [1/1]

PD#OTT-62370

Problem:
ioctl cmd not saved for cmd-replay

Solution:
save the ioctl

Verify:
Project

Change-Id: I6b3df5c5df74f5d3594aececab3c78d355ba0cbd
Signed-off-by: Zhiqiang Han <zhiqiang.han@amlogic.com>
diff --git a/src/dvr_record.c b/src/dvr_record.c
index fa7c6b3..f013ee6 100644
--- a/src/dvr_record.c
+++ b/src/dvr_record.c
@@ -931,6 +931,7 @@
     if (SEG_CALL_IS_VALID(ioctl)) {
       DVR_Control_t *pc;
       list_for_each_entry(pc, &p_ctx->segment_ctrls, head) {
+        DVR_INFO("%s, replay ctrl[cmd:%d]", __func__, pc->cmd);
         SEG_CALL_RET(ioctl, (p_ctx->segment_handle, pc->cmd, pc->data, pc->size), ret);
         DVR_RETURN_IF_FALSE(ret == DVR_SUCCESS);
       }
@@ -1248,7 +1249,9 @@
   if (SEG_CALL_IS_VALID(ioctl)) {
     if (p_ctx->segment_handle) {
       SEG_CALL_RET(ioctl, (p_ctx->segment_handle, cmd, data, size), ret);
-    } else {
+    }
+
+    {
       DVR_Control_t *ctrl = (DVR_Control_t *)calloc(1, sizeof(DVR_Control_t));
       if (ctrl) {
         ctrl->cmd = cmd;
@@ -1266,6 +1269,7 @@
       }
       if (ctrl) {
         list_add_tail(&ctrl->head, &p_ctx->segment_ctrls);
+        DVR_INFO("%s, save ctrl[cmd:%d]", __func__, ctrl->cmd);
         ret = DVR_SUCCESS;
       }
     }