mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 20:01:56 +00:00
Fix build fail
This commit is contained in:
parent
66c680edb1
commit
962c379299
3 changed files with 8 additions and 8 deletions
|
@ -298,7 +298,7 @@ bool srs_config_apply_filter(SrsConfDirective* dvr_apply, SrsRequest* req)
|
|||
}
|
||||
|
||||
string id = req->app + "/" + req->stream;
|
||||
if (::find(args.begin(), args.end(), id) != args.end()) {
|
||||
if (std::find(args.begin(), args.end(), id) != args.end()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -786,7 +786,7 @@ SrsConfDirective* SrsConfDirective::set_arg0(string a0)
|
|||
void SrsConfDirective::remove(SrsConfDirective* v)
|
||||
{
|
||||
std::vector<SrsConfDirective*>::iterator it;
|
||||
if ((it = ::find(directives.begin(), directives.end(), v)) != directives.end()) {
|
||||
if ((it = std::find(directives.begin(), directives.end(), v)) != directives.end()) {
|
||||
directives.erase(it);
|
||||
}
|
||||
}
|
||||
|
@ -3186,7 +3186,7 @@ srs_error_t SrsConfig::raw_enable_dvr(string vhost, string stream, bool& applied
|
|||
conf->args.clear();
|
||||
}
|
||||
|
||||
if (::find(conf->args.begin(), conf->args.end(), stream) == conf->args.end()) {
|
||||
if (std::find(conf->args.begin(), conf->args.end(), stream) == conf->args.end()) {
|
||||
conf->args.push_back(stream);
|
||||
}
|
||||
|
||||
|
@ -3210,7 +3210,7 @@ srs_error_t SrsConfig::raw_disable_dvr(string vhost, string stream, bool& applie
|
|||
|
||||
std::vector<string>::iterator it;
|
||||
|
||||
if ((it = ::find(conf->args.begin(), conf->args.end(), stream)) != conf->args.end()) {
|
||||
if ((it = std::find(conf->args.begin(), conf->args.end(), stream)) != conf->args.end()) {
|
||||
conf->args.erase(it);
|
||||
}
|
||||
|
||||
|
|
|
@ -88,7 +88,7 @@ srs_error_t SrsConnectionManager::cycle()
|
|||
|
||||
void SrsConnectionManager::add(ISrsConnection* conn)
|
||||
{
|
||||
if (::find(conns_.begin(), conns_.end(), conn) == conns_.end()) {
|
||||
if (std::find(conns_.begin(), conns_.end(), conn) == conns_.end()) {
|
||||
conns_.push_back(conn);
|
||||
}
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ ISrsConnection* SrsConnectionManager::find_by_name(std::string name)
|
|||
|
||||
void SrsConnectionManager::remove(ISrsConnection* c)
|
||||
{
|
||||
if (::find(zombies_.begin(), zombies_.end(), c) == zombies_.end()) {
|
||||
if (std::find(zombies_.begin(), zombies_.end(), c) == zombies_.end()) {
|
||||
zombies_.push_back(c);
|
||||
srs_cond_signal(cond);
|
||||
}
|
||||
|
|
|
@ -620,7 +620,7 @@ srs_error_t SrsHttpServeMux::initialize()
|
|||
|
||||
void SrsHttpServeMux::hijack(ISrsHttpMatchHijacker* h)
|
||||
{
|
||||
std::vector<ISrsHttpMatchHijacker*>::iterator it = ::find(hijackers.begin(), hijackers.end(), h);
|
||||
std::vector<ISrsHttpMatchHijacker*>::iterator it = std::find(hijackers.begin(), hijackers.end(), h);
|
||||
if (it != hijackers.end()) {
|
||||
return;
|
||||
}
|
||||
|
@ -629,7 +629,7 @@ void SrsHttpServeMux::hijack(ISrsHttpMatchHijacker* h)
|
|||
|
||||
void SrsHttpServeMux::unhijack(ISrsHttpMatchHijacker* h)
|
||||
{
|
||||
std::vector<ISrsHttpMatchHijacker*>::iterator it = ::find(hijackers.begin(), hijackers.end(), h);
|
||||
std::vector<ISrsHttpMatchHijacker*>::iterator it = std::find(hijackers.begin(), hijackers.end(), h);
|
||||
if (it == hijackers.end()) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue