mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
HLS: hls播放器解析ts失败时,清空数据以便恢复播放
This commit is contained in:
parent
b1f68b9563
commit
3d44c772ac
@ -259,7 +259,13 @@ void HlsPlayer::playDelay() {
|
||||
}
|
||||
|
||||
void HlsPlayer::onPacket_l(const char *data, size_t len) {
|
||||
try {
|
||||
_segment.input(data, len);
|
||||
} catch (...) {
|
||||
//ts解析失败,清空缓存数据
|
||||
_segment.reset();
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user