From e4c27a51b8ebc595cc32cbba966d48924b278497 Mon Sep 17 00:00:00 2001 From: winlin Date: Fri, 5 Jun 2015 21:34:28 +0800 Subject: [PATCH] fix the hls bug --- trunk/src/app/srs_app_http_conn.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/trunk/src/app/srs_app_http_conn.cpp b/trunk/src/app/srs_app_http_conn.cpp index 1e78f3adbe..3caf7f28ad 100644 --- a/trunk/src/app/srs_app_http_conn.cpp +++ b/trunk/src/app/srs_app_http_conn.cpp @@ -2119,6 +2119,11 @@ int SrsHttpServer::hls_update_ts(SrsRequest* r, string uri, string ts) return ret; } } + + // find again, ignore if not exits. + if (shls.find(sid) == shls.end()) { + return ret; + } SrsHlsEntry* entry = shls[sid]; srs_assert(entry);