修复编译警告

This commit is contained in:
xiongziliang 2021-01-31 19:19:08 +08:00
parent 4d6d56f2b7
commit 5175c52abe

View File

@ -155,7 +155,7 @@ int main(int argc, char *argv[]) {
recursive_mutex mtx; recursive_mutex mtx;
unordered_map<void *, MediaPusher::Ptr> pusher_map; unordered_map<void *, MediaPusher::Ptr> pusher_map;
auto add_pusher = [&](const MediaSource::Ptr &src, const string &rand_str, int index) { auto add_pusher = [&](const MediaSource::Ptr &src, const string &rand_str, size_t index) {
auto pusher = std::make_shared<MediaPusher>(src); auto pusher = std::make_shared<MediaPusher>(src);
auto tag = pusher.get(); auto tag = pusher.get();
pusher->setOnCreateSocket([](const EventPoller::Ptr &poller) { pusher->setOnCreateSocket([](const EventPoller::Ptr &poller) {