mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-14 20:15:58 +08:00
Merge branch 'patch2' of github.com:alexliyu7352/ZLMediaKit
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user