mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-23 03:10:04 +08:00
修复某些rtmp流无metedata时导致崩溃的问题
This commit is contained in:
parent
63b8477f0d
commit
a6d27306d0
@ -70,6 +70,9 @@ private:
|
|||||||
if(_pRtmpMediaSrc){
|
if(_pRtmpMediaSrc){
|
||||||
_pRtmpMediaSrc->onWrite(chunkData);
|
_pRtmpMediaSrc->onWrite(chunkData);
|
||||||
}
|
}
|
||||||
|
if(!_parser){
|
||||||
|
_parser.reset(new RtmpDemuxer());
|
||||||
|
}
|
||||||
_parser->inputRtmp(chunkData);
|
_parser->inputRtmp(chunkData);
|
||||||
checkInited();
|
checkInited();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user