From 69895028b74737228e76005f88b9aaf95136ec96 Mon Sep 17 00:00:00 2001
From: chenshijun <csj_sky@126.com>
Date: 星期一, 29 七月 2019 11:49:08 +0800
Subject: [PATCH] 析构时,deleteCamera增加handle置位的操作,防止重复关闭报错

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

diff --git a/csrc/wrapper.cpp b/csrc/wrapper.cpp
index 06eff0e..72fda1d 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);
             }
         }
     }

--
Gitblit v1.8.0