From 1fda56ab6e3c445529cb87742415e7f30198ee94 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Mon, 23 Sep 2019 16:53:04 +0800 Subject: [PATCH] =?UTF-8?q?rtmp=E6=8E=A8=E6=B5=81=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E7=A1=AE=E4=BF=9Dconfig=E5=B8=A7=E6=94=B6=E5=AE=8C=E5=90=8E?= =?UTF-8?q?=E5=86=8D=E6=B3=A8=E5=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtmp/RtmpSession.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Rtmp/RtmpSession.cpp b/src/Rtmp/RtmpSession.cpp index 9098765a..3b4a1663 100644 --- a/src/Rtmp/RtmpSession.cpp +++ b/src/Rtmp/RtmpSession.cpp @@ -489,7 +489,7 @@ void RtmpSession::onRtmpChunk(RtmpPacket &chunkData) { _stamp[chunkData.typeId % 2].revise(0, 0, dts_out, dts_out); chunkData.timeStamp = dts_out; } - if(!_metadata_got){ + if(!_metadata_got && !chunkData.isCfgFrame()){ //有些rtmp推流客户端不产生metadata,我们产生一个默认的metadata,目的是为了触发注册操作 _metadata_got = true; _pPublisherSrc->onGetMetaData(TitleMeta().getMetadata());