优化代码

整理代码
This commit is contained in:
xiongziliang
2022-11-12 21:59:48 +08:00
parent 6ffbcbfde5
commit 946945ce7b
16 changed files with 22 additions and 40 deletions

View File

@@ -56,8 +56,8 @@ protected:
class RtmpCodec : public RtmpRing, public FrameDispatcher , public CodecInfo{
public:
typedef std::shared_ptr<RtmpCodec> Ptr;
RtmpCodec(){}
virtual ~RtmpCodec(){}
RtmpCodec() = default;
~RtmpCodec() override = default;
virtual void makeConfigPacket() {};
};

View File

@@ -18,7 +18,7 @@
namespace mediakit{
class RtmpMuxer : public MediaSinkInterface{
class RtmpMuxer : public MediaSinkInterface {
public:
typedef std::shared_ptr<RtmpMuxer> Ptr;
@@ -26,7 +26,7 @@ public:
* 构造函数
*/
RtmpMuxer(const TitleMeta::Ptr &title);
virtual ~RtmpMuxer(){}
~RtmpMuxer() override = default;
/**
* 获取完整的SDP字符串