From 4b7c10ae842c5e3c57e833d8a97f124e337b6d52 Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期一, 04 十一月 2019 13:50:57 +0800
Subject: [PATCH] remove deps
---
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