mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix bug for memory hls.
This commit is contained in:
parent
bdda337f33
commit
30b1759aa9
1 changed files with 10 additions and 2 deletions
|
@ -877,7 +877,11 @@ int SrsHttpServer::hls_update_m3u8(SrsRequest* r, string m3u8)
|
|||
{
|
||||
int ret = ERROR_SUCCESS;
|
||||
|
||||
srs_assert(hls.find(r->vhost) != hls.end());
|
||||
// when no hls mounted, ignore.
|
||||
if (hls.find(r->vhost) == hls.end()) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
SrsHlsEntry* entry = hls[r->vhost];
|
||||
srs_assert(entry);
|
||||
|
||||
|
@ -915,7 +919,11 @@ int SrsHttpServer::hls_update_ts(SrsRequest* r, string uri, string ts)
|
|||
{
|
||||
int ret = ERROR_SUCCESS;
|
||||
|
||||
srs_assert(hls.find(r->vhost) != hls.end());
|
||||
// when no hls mounted, ignore.
|
||||
if (hls.find(r->vhost) == hls.end()) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
SrsHlsEntry* entry = hls[r->vhost];
|
||||
srs_assert(entry);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue