From c29dcd0c7a9a7d5985dc1326f7339d28139699d3 Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期四, 31 十月 2019 11:31:02 +0800
Subject: [PATCH] bug fix

---
 csrc/worker/rec.cpp |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/csrc/worker/rec.cpp b/csrc/worker/rec.cpp
index 9c5ae1e..9cecfb0 100644
--- a/csrc/worker/rec.cpp
+++ b/csrc/worker/rec.cpp
@@ -255,16 +255,18 @@
 
     void rec::SetRecMinCacheTime(const int min){
         // 鐢变簬鏁翠釜娴佺▼鑰楁椂,琛ュ伩time_offset_
-        int fps = 25;
-        if (recRef_){
-            fps = recRef_->getFPS();
-        }
-        min_cache_len_ += min * fps;
+        // int fps = 25;
+        // if (recRef_){
+        //     fps = recRef_->getFPS();
+        // }
+        // if (min_cache_len_ > (cache_time+min) * fps){
+        //     return;
+        // }
+        // min_cache_len_ += min * fps;
     }
 
     int rec::shrinkCache(){
         //瓒呰繃鏈�澶х紦瀛�,涓㈠純gop        
-
         while (list_pkt_.size() > min_cache_len_) {
             list_pkt_.pop_front();
             while(!list_pkt_.empty()){

--
Gitblit v1.8.0