From a6f5c0ca80b2fdd53351d5957a659a939f530fc2 Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期二, 30 七月 2019 15:28:04 +0800
Subject: [PATCH] update rec fid

---
 csrc/buz/recorder.cpp |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/csrc/buz/recorder.cpp b/csrc/buz/recorder.cpp
index f83a596..d80cea9 100644
--- a/csrc/buz/recorder.cpp
+++ b/csrc/buz/recorder.cpp
@@ -82,6 +82,9 @@
         void Recorder::end_writer(){
             if(cur_frame == -1) return;
             out_->endWriter();
+            logIt("INDEX %d, FILE %s, CURFrame %d, ENDFrame %d\n",
+                 file_frame_index_, file_path_.c_str(), cur_frame, end_frame);
+
             //reinit cur_frame clear list pkt
             {
                 std::lock_guard<std::mutex> locker(mutex_pkt_);
@@ -92,7 +95,6 @@
             //callback to frame index and path
             if(func_rec_info_){
                 func_rec_info_(id_,file_frame_index_, file_path_);
-                // logIt("recoder index %d, file name %s\n", file_frame_index_, file_path_.c_str());
             }else{
                 // logIt("recorder has no func_rec_info");
             }
@@ -187,6 +189,7 @@
                     end_frame = maxduration;
                 }
             }
+            logIt("FIRE REC FRAME ID: %lld", id);
             return 0;
         }
 
@@ -216,6 +219,7 @@
                 cv_.notify_one();
             }
 
+            logIt("CACHE PACKET FRAME ID %lld", pkt.id);
             return 0;
         }
 

--
Gitblit v1.8.0