mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 02:34:26 +08:00
Update ZLToolKit
This commit is contained in:
parent
aeda47ec8c
commit
77400832ac
@ -1 +1 @@
|
||||
Subproject commit 0dbf6c8d727c9f905458c81043f8fbad07ca5c58
|
||||
Subproject commit 45d3570498f420bd7ef5fa97ef0a35a67f31a3be
|
@ -180,7 +180,7 @@ int main(int argc, char *argv[]) {
|
||||
auto pusher = std::make_shared<MediaPusher>(src);
|
||||
pusher->setOnCreateSocket([](const EventPoller::Ptr &poller) {
|
||||
//socket关闭互斥锁,提高性能
|
||||
return std::make_shared<Socket>(poller, false);
|
||||
return Socket::createSocket(poller, false);
|
||||
});
|
||||
//设置推流失败监听
|
||||
pusher->setOnPublished([&mtx, &pusher_map, index](const SockException &ex) {
|
||||
|
@ -123,7 +123,7 @@ int main(int argc, char *argv[]) {
|
||||
auto tag = player.get();
|
||||
player->setOnCreateSocket([](const EventPoller::Ptr &poller) {
|
||||
//socket关闭互斥锁,提高性能
|
||||
return std::make_shared<Socket>(poller, false);
|
||||
return Socket::createSocket(poller, false);
|
||||
});
|
||||
//设置播放失败监听
|
||||
player->setOnPlayResult([&mtx, &player_map, tag](const SockException &ex) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user