From 51e5858dda6fb386024df0dce2bc38270f1bff02 Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期五, 26 七月 2019 10:59:28 +0800
Subject: [PATCH] remove log

---
 apipassive.go         |    7 ++++---
 csrc/wrapper.cpp      |    2 +-
 csrc/cffmpeg.cpp      |    4 ++--
 csrc/buz/recorder.cpp |    4 ++--
 4 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/apipassive.go b/apipassive.go
index 7da08e0..cfa027c 100644
--- a/apipassive.go
+++ b/apipassive.go
@@ -33,10 +33,11 @@
 	// 	return -1, ""
 	// }
 	path := C.GoString(p)
-	fmt.Println("Go get info : ", path, " len: ", l)
-	defer C.free(unsafe.Pointer(p))
+	C.free(unsafe.Pointer(p))
 
-	return int(i), C.GoString(p)
+	fmt.Println("Go get info : ", path, " len: ", l)
+
+	return int(i), path
 }
 
 // BuildDecoder build decoder
diff --git a/csrc/buz/recorder.cpp b/csrc/buz/recorder.cpp
index 30bf17a..4bfd370 100644
--- a/csrc/buz/recorder.cpp
+++ b/csrc/buz/recorder.cpp
@@ -96,9 +96,9 @@
             //callback to frame index and path
             if(func_rec_info_){
                 func_rec_info_(file_frame_index_, file_path_);
-                logIt("recoder index %d, file name %s\n", file_frame_index_, file_path_.c_str());
+                // logIt("recoder index %d, file name %s\n", file_frame_index_, file_path_.c_str());
             }else{
-                logIt("recorder has no func_rec_info");
+                // logIt("recorder has no func_rec_info");
             }
         }
 
diff --git a/csrc/cffmpeg.cpp b/csrc/cffmpeg.cpp
index 05be1a3..433a8ae 100644
--- a/csrc/cffmpeg.cpp
+++ b/csrc/cffmpeg.cpp
@@ -64,8 +64,8 @@
     std::string p;
     s->GetInfoRecorder(i, p);
 
-    printf("cffmpeg get info : index : %d, file : %s\n", i, p.c_str());
-    
+    // printf("cffmpeg get info : index : %d, file : %s\n", i, p.c_str());
+
     *index = i;
     *length = p.length();
     char *path = (char*)malloc(*length + 1);
diff --git a/csrc/wrapper.cpp b/csrc/wrapper.cpp
index 0b7b6ca..892b693 100644
--- a/csrc/wrapper.cpp
+++ b/csrc/wrapper.cpp
@@ -292,7 +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());
+        // logIt("go get info index: %d, file: %s\n", index, path.c_str());
     }
 
     ////////decoder

--
Gitblit v1.8.0