From f2edf354de355fd12dfba598fbb4081f09e405eb Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sun, 21 Mar 2021 16:50:15 +0800 Subject: [PATCH] =?UTF-8?q?rtmp=E6=94=AF=E6=8C=81=E6=9B=B4=E6=96=B0config?= =?UTF-8?q?=E5=B8=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtmp/RtmpMediaSource.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Rtmp/RtmpMediaSource.h b/src/Rtmp/RtmpMediaSource.h index ed2c312f..a510f240 100644 --- a/src/Rtmp/RtmpMediaSource.h +++ b/src/Rtmp/RtmpMediaSource.h @@ -131,7 +131,10 @@ public: if (pkt->isCfgFrame()) { lock_guard lock(_mtx); _config_frame_map[pkt->type_id] = pkt; - return; + if (!_ring) { + //注册后收到config帧更新到各播放器 + return; + } } if (!_ring) {