1
0
Fork 0
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:
winlin 2015-09-01 18:52:29 +08:00
parent 2bdd974227
commit 2cfb71616e

View file

@ -1677,6 +1677,7 @@ SrsRequest* SrsRequest::copy()
SrsRequest* cp = new SrsRequest();
cp->ip = ip;
cp->vhost = vhost;
cp->app = app;
cp->objectEncoding = objectEncoding;
cp->pageUrl = pageUrl;
@ -1687,7 +1688,6 @@ SrsRequest* SrsRequest::copy()
cp->stream = stream;
cp->swfUrl = swfUrl;
cp->tcUrl = tcUrl;
cp->vhost = vhost;
cp->duration = duration;
if (args) {
cp->args = args->copy()->to_object();
@ -1702,6 +1702,16 @@ void SrsRequest::update_auth(SrsRequest* req)
swfUrl = req->swfUrl;
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) {
srs_freep(args);
}