From f93ee1a42e8c47e472332287b7350b66a6b0fa11 Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期五, 24 七月 2020 18:28:57 +0800
Subject: [PATCH] 保存触发id之后的视频作为触发视频

---
 csrc/worker/stream.hpp |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/csrc/worker/stream.hpp b/csrc/worker/stream.hpp
index b738ada..8a0feec 100644
--- a/csrc/worker/stream.hpp
+++ b/csrc/worker/stream.hpp
@@ -5,16 +5,17 @@
 #include <mutex>
 #include <memory>
 
+#include "../common.hpp"
+
 namespace ffwrapper{
     class FormatIn;
-    class CodedData;
 }
 
 namespace cffmpeg_wrap{
     class stream
     {
     private:
-        std::list<std::shared_ptr<ffwrapper::CodedData> > list_avpkt_;
+        std::list<CPacket> list_pkt_;
         std::mutex mutex_avpkt_;
         ffwrapper::FormatIn *streamRef_;
         const int max_size_;
@@ -23,7 +24,7 @@
         stream(ffwrapper::FormatIn *in, const int maxSize);
         ~stream();
 
-        int SetPacket(std::shared_ptr<ffwrapper::CodedData> data);
+        int SetPacket(const CPacket &pkt);
         void GetPacket(unsigned char **pktData, int *size, int *key);
         void AudioSwitch(const bool a){audio_ = a;}
     };

--
Gitblit v1.8.0