Skip to content

Commit

Permalink
fix bug // @see #2311
Browse files Browse the repository at this point in the history
  • Loading branch information
chenhaibo committed May 8, 2021
1 parent 968ab17 commit 497c2d5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions trunk/src/app/srs_app_hls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ srs_error_t SrsHlsMuxer::update_config(SrsRequest* r, string entry_prefix,
{
srs_error_t err = srs_success;

srs_freep(req);
req = r->copy();
// @see https://github.com/ossrs/srs/issues/2311
req->update_auth(r);

hls_entry_prefix = entry_prefix;
hls_path = path;
Expand Down
14 changes: 8 additions & 6 deletions trunk/src/app/srs_app_http_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,9 @@ SrsBufferCache::~SrsBufferCache()

srs_error_t SrsBufferCache::update(SrsSource* s, SrsRequest* r)
{
srs_freep(req);
req = r->copy();
// @see https://github.com/ossrs/srs/issues/2311
req->update_auth(r);

source = s;

return srs_success;
Expand Down Expand Up @@ -530,10 +531,11 @@ SrsLiveStream::~SrsLiveStream()
srs_error_t SrsLiveStream::update(SrsSource* s, SrsRequest* r)
{
source = s;

srs_freep(req);
req = r->copy()->as_http();


// @see https://github.com/ossrs/srs/issues/2311
req->update_auth(r);
req->as_http();

return srs_success;
}

Expand Down

0 comments on commit 497c2d5

Please sign in to comment.