From c14c22124dea2e93ba7a55c5b7dc6d3851392366 Mon Sep 17 00:00:00 2001
From: chenshijun <csj_sky@126.com>
Date: 星期二, 10 九月 2019 16:33:59 +0800
Subject: [PATCH] list_avpkt_的互斥量mutex_avpkt_的bug

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

diff --git a/csrc/wrapper.cpp b/csrc/wrapper.cpp
index 48ed9a0..4e3d8b8 100644
--- a/csrc/wrapper.cpp
+++ b/csrc/wrapper.cpp
@@ -338,7 +338,7 @@
         list_avpkt_.pop_front();
     }
     void Wrapper::cacheAVPacket(const AVPacket &pkt){
-        std::lock_guard<std::mutex> l(mutex_pic_);
+        std::lock_guard<std::mutex> l(mutex_avpkt_);
         while(list_avpkt_.size() > 10){
 //            printf("cacheAVPacket drop packets!!!!!!!!!!\n");
             for(int i = 0; i < 5; i++){

--
Gitblit v1.8.0