From e92ad6b5b8bee0dde632e9d3cb1af969208254c7 Mon Sep 17 00:00:00 2001 From: xzl <771730766@qq.com> Date: Thu, 18 May 2017 16:25:36 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E6=AD=A2=E4=BB=A3=E7=90=86=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E4=B8=8D=E9=87=8D=E8=AF=95=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Device/PlayerProxy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Device/PlayerProxy.cpp b/src/Device/PlayerProxy.cpp index 5216dc95..3a37b56f 100644 --- a/src/Device/PlayerProxy.cpp +++ b/src/Device/PlayerProxy.cpp @@ -31,7 +31,6 @@ void PlayerProxy::play(const char* strUrl, const char *strUser, string strPwdTmp(strPwd); m_pPlayer.reset(new MediaPlayer()); - m_pPlayer->play(strUrl, strUser, strPwd, eType); weak_ptr weakSelf = shared_from_this(); m_pPlayer->setOnVideoCB( [weakSelf,strUrlTmp](const H264Frame &data ) { auto strongSelf = weakSelf.lock(); @@ -92,6 +91,7 @@ void PlayerProxy::play(const char* strUrl, const char *strUser, strongSelf->expired(); } }); + m_pPlayer->play(strUrl, strUser, strPwd, eType); } PlayerProxy::~PlayerProxy() {