正在显示
1 个修改的文件
包含
10 行增加
和
2 行删除
| @@ -877,7 +877,11 @@ int SrsHttpServer::hls_update_m3u8(SrsRequest* r, string m3u8) | @@ -877,7 +877,11 @@ int SrsHttpServer::hls_update_m3u8(SrsRequest* r, string m3u8) | ||
| 877 | { | 877 | { |
| 878 | int ret = ERROR_SUCCESS; | 878 | int ret = ERROR_SUCCESS; |
| 879 | 879 | ||
| 880 | - srs_assert(hls.find(r->vhost) != hls.end()); | 880 | + // when no hls mounted, ignore. |
| 881 | + if (hls.find(r->vhost) == hls.end()) { | ||
| 882 | + return ret; | ||
| 883 | + } | ||
| 884 | + | ||
| 881 | SrsHlsEntry* entry = hls[r->vhost]; | 885 | SrsHlsEntry* entry = hls[r->vhost]; |
| 882 | srs_assert(entry); | 886 | srs_assert(entry); |
| 883 | 887 | ||
| @@ -915,7 +919,11 @@ int SrsHttpServer::hls_update_ts(SrsRequest* r, string uri, string ts) | @@ -915,7 +919,11 @@ int SrsHttpServer::hls_update_ts(SrsRequest* r, string uri, string ts) | ||
| 915 | { | 919 | { |
| 916 | int ret = ERROR_SUCCESS; | 920 | int ret = ERROR_SUCCESS; |
| 917 | 921 | ||
| 918 | - srs_assert(hls.find(r->vhost) != hls.end()); | 922 | + // when no hls mounted, ignore. |
| 923 | + if (hls.find(r->vhost) == hls.end()) { | ||
| 924 | + return ret; | ||
| 925 | + } | ||
| 926 | + | ||
| 919 | SrsHlsEntry* entry = hls[r->vhost]; | 927 | SrsHlsEntry* entry = hls[r->vhost]; |
| 920 | srs_assert(entry); | 928 | srs_assert(entry); |
| 921 | 929 |
-
请 注册 或 登录 后发表评论