From a6d27306d016c0f6877c65fe38bf8b4a056c6ccb Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Wed, 27 Feb 2019 17:33:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9F=90=E4=BA=9Brtmp?= =?UTF-8?q?=E6=B5=81=E6=97=A0metedata=E6=97=B6=E5=AF=BC=E8=87=B4=E5=B4=A9?= =?UTF-8?q?=E6=BA=83=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtmp/RtmpPlayerImp.h | 3 +++ 1 file changed, 3 insertions(+) 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(); }