修复python on_create_muxer事件隐式拷贝对象的bug

This commit is contained in:
xia-chu
2026-03-07 13:04:12 +08:00
parent d8880f032d
commit b8301bd085
2 changed files with 2 additions and 2 deletions

View File

@@ -25,7 +25,7 @@
namespace mediakit {
class MultiMediaSourceMuxer : public MediaSourceEventInterceptor, public MediaSink, public std::enable_shared_from_this<MultiMediaSourceMuxer>{
class MultiMediaSourceMuxer : public MediaSourceEventInterceptor, public MediaSink, public toolkit::noncopyable, public std::enable_shared_from_this<MultiMediaSourceMuxer>{
public:
using Ptr = std::shared_ptr<MultiMediaSourceMuxer>;
using RingType = toolkit::RingBuffer<Frame::Ptr>;