去除继承

This commit is contained in:
xiongziliang 2019-08-04 23:58:54 +08:00
parent 462eac9aea
commit 008df0ab85

View File

@ -38,12 +38,12 @@ using namespace toolkit;
namespace mediakit { namespace mediakit {
class TsMuxer : public MediaSink{ class TsMuxer {
public: public:
TsMuxer(); TsMuxer();
virtual ~TsMuxer(); virtual ~TsMuxer();
void addTrack(const Track::Ptr &track) override; void addTrack(const Track::Ptr &track) ;
void inputFrame(const Frame::Ptr &frame) override ; void inputFrame(const Frame::Ptr &frame) ;
protected: protected:
virtual void onTs(const void *packet, int bytes,uint32_t timestamp,int flags) = 0; virtual void onTs(const void *packet, int bytes,uint32_t timestamp,int flags) = 0;
void resetTracks(); void resetTracks();