MediaSource: 继承改成私有

This commit is contained in:
ziyue
2021-11-10 10:50:45 +08:00
parent 34d833a1ed
commit 37fdb8d135
7 changed files with 7 additions and 7 deletions

View File

@@ -40,7 +40,7 @@ namespace mediakit {
* 只要生成了这三要素那么要实现rtmp推流、rtmp服务器就很简单了
* rtmp推拉流协议中先传递metadata然后传递config帧然后一直传递普通帧
*/
class RtmpMediaSource : public MediaSource, public RingDelegate<RtmpPacket::Ptr>, public PacketCache<RtmpPacket>{
class RtmpMediaSource : public MediaSource, public RingDelegate<RtmpPacket::Ptr>, private PacketCache<RtmpPacket>{
public:
typedef std::shared_ptr<RtmpMediaSource> Ptr;
typedef std::shared_ptr<List<RtmpPacket::Ptr> > RingDataType;