mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 10:40:05 +08:00
提高对无Metadata的rtmp流的兼容性
This commit is contained in:
parent
653667baf5
commit
8552687559
@ -375,10 +375,10 @@ void RtmpPlayer::onRtmpChunk(RtmpPacket &chunkData) {
|
||||
_aiNowStamp[idx] = chunkData.timeStamp;
|
||||
}
|
||||
if(!_metadata_got){
|
||||
_metadata_got = true;
|
||||
if(!onCheckMeta(TitleMeta().getMetadata())){
|
||||
throw std::runtime_error("onCheckMeta failed");
|
||||
}
|
||||
_metadata_got = true;
|
||||
}
|
||||
onMediaData_l(std::make_shared<RtmpPacket>(std::move(chunkData)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user