winlin

fix the hls bug

@@ -2120,6 +2120,11 @@ int SrsHttpServer::hls_update_ts(SrsRequest* r, string uri, string ts) @@ -2120,6 +2120,11 @@ int SrsHttpServer::hls_update_ts(SrsRequest* r, string uri, string ts)
2120 } 2120 }
2121 } 2121 }
2122 2122
  2123 + // find again, ignore if not exits.
  2124 + if (shls.find(sid) == shls.end()) {
  2125 + return ret;
  2126 + }
  2127 +
2123 SrsHlsEntry* entry = shls[sid]; 2128 SrsHlsEntry* entry = shls[sid];
2124 srs_assert(entry); 2129 srs_assert(entry);
2125 srs_assert(entry->tmpl); 2130 srs_assert(entry->tmpl);