mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-13 19:51:49 +08:00
Update ZLToolKit
This commit is contained in:
@@ -166,7 +166,7 @@ int main(int argc, char *argv[]) {
|
||||
auto tag = pusher.get();
|
||||
pusher->setOnCreateSocket([](const EventPoller::Ptr &poller) {
|
||||
//socket关闭互斥锁,提高性能
|
||||
return std::make_shared<Socket>(poller, false);
|
||||
return Socket::createSocket(poller, false);
|
||||
});
|
||||
//设置推流失败监听
|
||||
pusher->setOnPublished([&mtx, &pusher_map, tag](const SockException &ex) {
|
||||
|
||||
Reference in New Issue
Block a user