mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix #391, copy request for async call.
This commit is contained in:
parent
6bfb743aa0
commit
0bb90145ba
3 changed files with 7 additions and 3 deletions
|
@ -172,7 +172,7 @@ void SrsHlsSegment::update_duration(int64_t current_frame_dts)
|
|||
|
||||
SrsDvrAsyncCallOnHls::SrsDvrAsyncCallOnHls(SrsRequest* r, string p, string t, string m, string mu, int s, double d)
|
||||
{
|
||||
req = r;
|
||||
req = r->copy();
|
||||
path = p;
|
||||
ts_url = t;
|
||||
m3u8 = m;
|
||||
|
@ -183,6 +183,7 @@ SrsDvrAsyncCallOnHls::SrsDvrAsyncCallOnHls(SrsRequest* r, string p, string t, st
|
|||
|
||||
SrsDvrAsyncCallOnHls::~SrsDvrAsyncCallOnHls()
|
||||
{
|
||||
srs_freep(req);
|
||||
}
|
||||
|
||||
int SrsDvrAsyncCallOnHls::call()
|
||||
|
@ -221,12 +222,13 @@ string SrsDvrAsyncCallOnHls::to_string()
|
|||
|
||||
SrsDvrAsyncCallOnHlsNotify::SrsDvrAsyncCallOnHlsNotify(SrsRequest* r, string u)
|
||||
{
|
||||
req = r;
|
||||
req = r->copy();
|
||||
ts_url = u;
|
||||
}
|
||||
|
||||
SrsDvrAsyncCallOnHlsNotify::~SrsDvrAsyncCallOnHlsNotify()
|
||||
{
|
||||
srs_freep(req);
|
||||
}
|
||||
|
||||
int SrsDvrAsyncCallOnHlsNotify::call()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue