修复指针转换偏移量导致的bug

This commit is contained in:
xiongziliang 2020-05-15 21:39:06 +08:00
parent f71a9bfadf
commit be9e31bba2

View File

@ -264,7 +264,7 @@ public:
void addDelegate(const FrameWriterInterface::Ptr &delegate){
//_delegates_write可能多线程同时操作
lock_guard<mutex> lck(_mtx);
_delegates_write.emplace(delegate.get(),delegate);
_delegates_write.emplace((void *)delegate.get(),delegate);
_need_update = true;
}