mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-10-30 16:27:36 +08:00
精简代码
This commit is contained in:
parent
c8ea6490cd
commit
06c6654ed5
@ -1 +1 @@
|
||||
Subproject commit 23575ba82d00641f8f33851b1d85391da310c378
|
||||
Subproject commit 82f82e723eda127777aaf91ad0e4615e8d56e8d5
|
@ -114,7 +114,6 @@ private:
|
||||
}
|
||||
strong_self->onReaderChanged(size);
|
||||
});
|
||||
onReaderChanged(0);
|
||||
if (!_init_segment.empty()) {
|
||||
regist();
|
||||
}
|
||||
|
@ -52,7 +52,6 @@ public:
|
||||
strongSelf->onReaderChanged(size);
|
||||
};
|
||||
_ring = std::make_shared<RingType>(0, std::move(lam));
|
||||
onReaderChanged(0);
|
||||
regist();
|
||||
}
|
||||
|
||||
|
@ -158,8 +158,6 @@ public:
|
||||
//GOP默认缓冲512组RTMP包,每组RTMP包时间戳相同(如果开启合并写了,那么每组为合并写时间内的RTMP包),
|
||||
//每次遇到关键帧第一个RTMP包,则会清空GOP缓存(因为有新的关键帧了,同样可以实现秒开)
|
||||
_ring = std::make_shared<RingType>(_ring_size,std::move(lam));
|
||||
onReaderChanged(0);
|
||||
|
||||
if(_metadata){
|
||||
regist();
|
||||
}
|
||||
|
@ -183,7 +183,6 @@ public:
|
||||
//GOP默认缓冲512组RTP包,每组RTP包时间戳相同(如果开启合并写了,那么每组为合并写时间内的RTP包),
|
||||
//每次遇到关键帧第一个RTP包,则会清空GOP缓存(因为有新的关键帧了,同样可以实现秒开)
|
||||
_ring = std::make_shared<RingType>(_ring_size, std::move(lam));
|
||||
onReaderChanged(0);
|
||||
if (!_sdp.empty()) {
|
||||
regist();
|
||||
}
|
||||
|
@ -98,7 +98,6 @@ private:
|
||||
}
|
||||
strong_self->onReaderChanged(size);
|
||||
});
|
||||
onReaderChanged(0);
|
||||
//注册媒体源
|
||||
regist();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user