diff --git a/src/Rtmp/RtmpPlayerImp.h b/src/Rtmp/RtmpPlayerImp.h index 366d9738..0f7e07b4 100644 --- a/src/Rtmp/RtmpPlayerImp.h +++ b/src/Rtmp/RtmpPlayerImp.h @@ -70,6 +70,9 @@ private: if(_pRtmpMediaSrc){ _pRtmpMediaSrc->onWrite(chunkData); } + if(!_parser){ + _parser.reset(new RtmpDemuxer()); + } _parser->inputRtmp(chunkData); checkInited(); }