mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-30 07:26:53 +08:00
rtmp推流时,确保config帧收完后再注册
This commit is contained in:
parent
cb7c72d9d9
commit
1fda56ab6e
@ -489,7 +489,7 @@ void RtmpSession::onRtmpChunk(RtmpPacket &chunkData) {
|
|||||||
_stamp[chunkData.typeId % 2].revise(0, 0, dts_out, dts_out);
|
_stamp[chunkData.typeId % 2].revise(0, 0, dts_out, dts_out);
|
||||||
chunkData.timeStamp = dts_out;
|
chunkData.timeStamp = dts_out;
|
||||||
}
|
}
|
||||||
if(!_metadata_got){
|
if(!_metadata_got && !chunkData.isCfgFrame()){
|
||||||
//有些rtmp推流客户端不产生metadata,我们产生一个默认的metadata,目的是为了触发注册操作
|
//有些rtmp推流客户端不产生metadata,我们产生一个默认的metadata,目的是为了触发注册操作
|
||||||
_metadata_got = true;
|
_metadata_got = true;
|
||||||
_pPublisherSrc->onGetMetaData(TitleMeta().getMetadata());
|
_pPublisherSrc->onGetMetaData(TitleMeta().getMetadata());
|
||||||
|
Loading…
Reference in New Issue
Block a user