mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #319, copy all data to request for source.
This commit is contained in:
parent
2bdd974227
commit
2cfb71616e
1 changed files with 11 additions and 1 deletions
|
@ -1677,6 +1677,7 @@ SrsRequest* SrsRequest::copy()
|
||||||
SrsRequest* cp = new SrsRequest();
|
SrsRequest* cp = new SrsRequest();
|
||||||
|
|
||||||
cp->ip = ip;
|
cp->ip = ip;
|
||||||
|
cp->vhost = vhost;
|
||||||
cp->app = app;
|
cp->app = app;
|
||||||
cp->objectEncoding = objectEncoding;
|
cp->objectEncoding = objectEncoding;
|
||||||
cp->pageUrl = pageUrl;
|
cp->pageUrl = pageUrl;
|
||||||
|
@ -1687,7 +1688,6 @@ SrsRequest* SrsRequest::copy()
|
||||||
cp->stream = stream;
|
cp->stream = stream;
|
||||||
cp->swfUrl = swfUrl;
|
cp->swfUrl = swfUrl;
|
||||||
cp->tcUrl = tcUrl;
|
cp->tcUrl = tcUrl;
|
||||||
cp->vhost = vhost;
|
|
||||||
cp->duration = duration;
|
cp->duration = duration;
|
||||||
if (args) {
|
if (args) {
|
||||||
cp->args = args->copy()->to_object();
|
cp->args = args->copy()->to_object();
|
||||||
|
@ -1702,6 +1702,16 @@ void SrsRequest::update_auth(SrsRequest* req)
|
||||||
swfUrl = req->swfUrl;
|
swfUrl = req->swfUrl;
|
||||||
tcUrl = req->tcUrl;
|
tcUrl = req->tcUrl;
|
||||||
|
|
||||||
|
ip = req->ip;
|
||||||
|
vhost = req->vhost;
|
||||||
|
app = req->app;
|
||||||
|
objectEncoding = req->objectEncoding;
|
||||||
|
host = req->host;
|
||||||
|
port = req->port;
|
||||||
|
param = req->param;
|
||||||
|
schema = req->schema;
|
||||||
|
duration = req->duration;
|
||||||
|
|
||||||
if (args) {
|
if (args) {
|
||||||
srs_freep(args);
|
srs_freep(args);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue