Merge branch 'patch2' of github.com:alexliyu7352/ZLMediaKit

This commit is contained in:
xiongziliang
2022-01-09 14:54:21 +08:00
8 changed files with 369 additions and 9 deletions

View File

@@ -49,7 +49,14 @@ void HttpTSPlayer::onResponseBody(const char *buf, size_t size, size_t recved_si
}
if (_split_ts) {
_segment.input(buf, size);
try {
_segment.input(buf, size);
}catch (std::exception &ex) {
WarnL << ex.what();
//ts解析失败清空缓存数据
_segment.reset();
throw;
}
} else {
onPacket(buf, size);
}