dvr: Irdeto LiveTV APK pvr playback bug fix [1/1]

PD#SWPL-20802

Problem:
  Irdeto LiveTV APK pvr playback bug fix

Solution:
2. user seek when state is pause. we need check is need replay.
    if fmt and pid are not changed,we only change read pos.
3. change sync mode at dvr_play_test.
4. add x2 1/4 1/8 speed.
5. fixed build warning.
6. clear first frame when start play.
7. add play is null.
8. del some debug info.
9. close audio when ff fb.

Verify:
Android Q + AC214

Change-Id: Id28a021a5fff1fe47534f98f710a2ebe591d6094
Signed-off-by: hualing chen <hualing.chen@amlogic.com>
diff --git a/src/segment.c b/src/segment.c
index aa97f6a..4efe0b2 100644
--- a/src/segment.c
+++ b/src/segment.c
@@ -86,7 +86,7 @@
   DVR_RETURN_IF_FALSE(params);
   DVR_RETURN_IF_FALSE(p_handle);
 
-  DVR_DEBUG(1, "%s, location:%s, id:%llu", __func__, params->location, params->segment_id);
+  //DVR_DEBUG(1, "%s, location:%s, id:%llu", __func__, params->location, params->segment_id);
 
   p_ctx = (void*)malloc(sizeof(Segment_Context_t));
   DVR_RETURN_IF_FALSE(p_ctx);
@@ -141,7 +141,7 @@
   p_ctx->segment_id = params->segment_id;
   strncpy(p_ctx->location, params->location, strlen(params->location));
 
-  DVR_DEBUG(1, "%s, open file success p_ctx->location [%s]", __func__, p_ctx->location);
+  //DVR_DEBUG(1, "%s, open file success p_ctx->location [%s]", __func__, p_ctx->location);
   *p_handle = (Segment_Handle_t)p_ctx;
   return DVR_SUCCESS;
 }
@@ -349,7 +349,7 @@
       return pts;
     }
   }
-  DVR_DEBUG(1, "tell cur time=%llu, offset=%lld, position=%lld\n", pts, offset, position);
+  //DVR_DEBUG(1, "tell cur time=%llu, offset=%lld, position=%lld\n", pts, offset, position);
   return pts;
 }
 
@@ -522,7 +522,7 @@
   p1 = strstr(buf, "duration=");
   DVR_RETURN_IF_FALSE(p1);
   p_info->duration = strtoull(p1 + 9, NULL, 10);
-  DVR_DEBUG(1, "load info p_info->duration:%lld", p_info->duration);
+  //DVR_DEBUG(1, "load info p_info->duration:%lld", p_info->duration);
 
   /*Save segment size*/
   p1 = fgets(buf, sizeof(buf), p_ctx->dat_fp);