mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-03-02 12:10:53 +08:00
提高对无Metadata的rtmp流的兼容性
This commit is contained in:
@@ -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)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user