From 8552687559b6f0b8654db336d735f06f0d6fa891 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Tue, 24 Sep 2019 11:44:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E9=AB=98=E5=AF=B9=E6=97=A0Metadata?= =?UTF-8?q?=E7=9A=84rtmp=E6=B5=81=E7=9A=84=E5=85=BC=E5=AE=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtmp/RtmpPlayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))); }