Skip to content

Commit

Permalink
For #1615, fix build failed and srt api issue
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Feb 25, 2020
1 parent 90afd06 commit 04d0620
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion trunk/src/core/srs_core_mem_watch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ void srs_memory_report()
std::map<void*, SrsMemoryObject*>::iterator it;
for (it = _srs_ptrs.begin(); it != _srs_ptrs.end(); ++it) {
SrsMemoryObject* obj = it->second;
printf(" %s: %#"PRIx64", %dB\n", obj->category.c_str(), (int64_t)obj->ptr, obj->size);
printf(" %s: %#" PRIx64 ", %dB\n", obj->category.c_str(), (int64_t)obj->ptr, obj->size);
total += obj->size;
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/src/protocol/srs_protocol_utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ void srs_discovery_tc_url(string tcUrl, string& schema, string& host, string& vh
srs_vhost_resolve(vhost, stream, param);

// Ignore when the param only contains the default vhost.
if (param == "?vhost="SRS_CONSTS_RTMP_DEFAULT_VHOST) {
if (param == "?vhost=" SRS_CONSTS_RTMP_DEFAULT_VHOST) {
param = "";
}
}
Expand Down
4 changes: 4 additions & 0 deletions trunk/src/srt/srt_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,11 @@ void srt_server::on_work()
}
}
}

// @see 2020-01-28 https://github.com/Haivision/srt/commit/b8c70ec801a56bea151ecce9c09c4ebb720c2f68#diff-fb66028e8746fea578788532533a296bR786
#if SRT_VERSION_MAJOR > 1 || SRT_VERSION_MINOR > 4 || SRT_VERSION_PATCH > 1
srt_epoll_clear_usocks(_pollid);
#endif
}

SrtServerAdapter::SrtServerAdapter()
Expand Down

0 comments on commit 04d0620

Please sign in to comment.