mirror of
https://gitee.com/xia-chu/ZLMediaKit.git
synced 2026-05-17 23:37:49 +08:00
修复指针转换偏移量导致的bug
This commit is contained in:
parent
f71a9bfadf
commit
be9e31bba2
@ -264,7 +264,7 @@ public:
|
|||||||
void addDelegate(const FrameWriterInterface::Ptr &delegate){
|
void addDelegate(const FrameWriterInterface::Ptr &delegate){
|
||||||
//_delegates_write可能多线程同时操作
|
//_delegates_write可能多线程同时操作
|
||||||
lock_guard<mutex> lck(_mtx);
|
lock_guard<mutex> lck(_mtx);
|
||||||
_delegates_write.emplace(delegate.get(),delegate);
|
_delegates_write.emplace((void *)delegate.get(),delegate);
|
||||||
_need_update = true;
|
_need_update = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user