mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
merge srs2
This commit is contained in:
commit
9ba4bed648
5 changed files with 19 additions and 32 deletions
|
@ -1232,11 +1232,9 @@ int SrsHttpStreamServer::hijack(ISrsHttpMessage* request, ISrsHttpHandler** ph)
|
|||
}
|
||||
}
|
||||
|
||||
SrsSource* s = SrsSource::fetch(r);
|
||||
if (!s) {
|
||||
if ((ret = SrsSource::create(r, server, server, &s)) != ERROR_SUCCESS) {
|
||||
return ret;
|
||||
}
|
||||
SrsSource* s = NULL;
|
||||
if ((ret = SrsSource::fetch_or_create(r, server, server, &s)) != ERROR_SUCCESS) {
|
||||
return ret;
|
||||
}
|
||||
srs_assert(s != NULL);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue