rtmp支持更新config帧

This commit is contained in:
xiongziliang 2021-03-21 16:50:15 +08:00
parent c5b0485519
commit f2edf354de
1 changed files with 4 additions and 1 deletions

View File

@ -131,8 +131,11 @@ public:
if (pkt->isCfgFrame()) {
lock_guard<recursive_mutex> lock(_mtx);
_config_frame_map[pkt->type_id] = pkt;
if (!_ring) {
//注册后收到config帧更新到各播放器
return;
}
}
if (!_ring) {
weak_ptr<RtmpMediaSource> weakSelf = dynamic_pointer_cast<RtmpMediaSource>(shared_from_this());