|
|
|
@ -1713,6 +1713,10 @@ srs_error_t SrsLiveSourceManager::fetch_or_create(SrsRequest* r, ISrsLiveSourceH
|
|
|
|
|
|
|
|
|
|
SrsLiveSource* source = NULL;
|
|
|
|
|
if ((source = fetch(r)) != NULL) {
|
|
|
|
|
// we always update the request of resource,
|
|
|
|
|
// for origin auth is on, the token in request maybe invalid,
|
|
|
|
|
// and we only need to update the token of request, it's simple.
|
|
|
|
|
source->update_auth(r);
|
|
|
|
|
*pps = source;
|
|
|
|
|
return err;
|
|
|
|
|
}
|
|
|
|
@ -1751,11 +1755,6 @@ SrsLiveSource* SrsLiveSourceManager::fetch(SrsRequest* r)
|
|
|
|
|
|
|
|
|
|
source = pool[stream_url];
|
|
|
|
|
|
|
|
|
|
// we always update the request of resource,
|
|
|
|
|
// for origin auth is on, the token in request maybe invalid,
|
|
|
|
|
// and we only need to update the token of request, it's simple.
|
|
|
|
|
source->update_auth(r);
|
|
|
|
|
|
|
|
|
|
return source;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|