From e84510254860e916cbb48ec3de4557b14a99d76c Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期五, 26 七月 2019 10:55:22 +0800
Subject: [PATCH] add log

---
 csrc/wrapper.cpp |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/csrc/wrapper.cpp b/csrc/wrapper.cpp
index 06eff0e..0b7b6ca 100644
--- a/csrc/wrapper.cpp
+++ b/csrc/wrapper.cpp
@@ -201,7 +201,7 @@
             auto in = init_reader(input_url_.c_str());
 
             if (!in) {
-                logIt("ERROR: init_reader!\n");
+                logIt("ERROR: init_reader! url: %s\n", input_url_.c_str());
                 usleep(200000);
                 continue;
             }
@@ -227,9 +227,9 @@
                     break;
                 }
                 //test
-                if(recorder_)
-                    if(id % 250 == 0)
-                        recorder_->FireRecorder(id);
+                // if(recorder_)
+                //     if(id % 250 == 0)
+                //         recorder_->FireRecorder(id);
             }
         }
     }
@@ -277,6 +277,7 @@
             info.file_frame_index = index;
             info.file_path = path;
             list_rec_.emplace_back(info);
+            logIt("list rec files count : %d", list_rec_.size());
         }
     }
 
@@ -291,6 +292,7 @@
         index = info.file_frame_index;
         path = info.file_path;
         list_rec_.pop_front();
+        logIt("go get info index: %d, file: %s\n", index, path.c_str());
     }
 
     ////////decoder

--
Gitblit v1.8.0