diff --git a/src/Rtmp/RtmpPlayer.cpp b/src/Rtmp/RtmpPlayer.cpp index b840a416..cb5c4900 100644 --- a/src/Rtmp/RtmpPlayer.cpp +++ b/src/Rtmp/RtmpPlayer.cpp @@ -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(std::move(chunkData))); }