mirror of
https://gitee.com/xia-chu/ZLMediaKit.git
synced 2026-05-17 15:27:49 +08:00
rtmp支持更新config帧
This commit is contained in:
parent
c5b0485519
commit
f2edf354de
@ -131,8 +131,11 @@ public:
|
|||||||
if (pkt->isCfgFrame()) {
|
if (pkt->isCfgFrame()) {
|
||||||
lock_guard<recursive_mutex> lock(_mtx);
|
lock_guard<recursive_mutex> lock(_mtx);
|
||||||
_config_frame_map[pkt->type_id] = pkt;
|
_config_frame_map[pkt->type_id] = pkt;
|
||||||
|
if (!_ring) {
|
||||||
|
//注册后收到config帧更新到各播放器
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!_ring) {
|
if (!_ring) {
|
||||||
weak_ptr<RtmpMediaSource> weakSelf = dynamic_pointer_cast<RtmpMediaSource>(shared_from_this());
|
weak_ptr<RtmpMediaSource> weakSelf = dynamic_pointer_cast<RtmpMediaSource>(shared_from_this());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user