From 1e7cbcbf5cc7e6d9d59292c315a56985ec8d3b57 Mon Sep 17 00:00:00 2001 From: yuanyuanxiang <962914132@qq.com> Date: Sat, 26 Jan 2019 14:50:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=89=93=E5=BC=80=E8=BF=9C?= =?UTF-8?q?=E7=A8=8B=E8=A7=86=E9=A2=91=E5=8D=A1=E4=BD=8F=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ReadMe.txt | 4 +++- client/CaptureVideo.cpp | 9 ++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ReadMe.txt b/ReadMe.txt index 7919b25..a282903 100644 --- a/ReadMe.txt +++ b/ReadMe.txt @@ -152,4 +152,6 @@ 2019.1.26 -发布V1.0.0.3。 +1、发布V1.0.0.3。 + +2、修复Release模式打不开远程视频,或打开视频时画面卡住的问题,问题出在CCaptureVideo GetDIB。 diff --git a/client/CaptureVideo.cpp b/client/CaptureVideo.cpp index 799baca..6e18ee5 100644 --- a/client/CaptureVideo.cpp +++ b/client/CaptureVideo.cpp @@ -256,13 +256,16 @@ void CCaptureVideo::SendEnd() // LPBYTE CCaptureVideo::GetDIB(DWORD& dwSize) { BYTE *szBuffer = NULL; + int n = 200; // 10sûлȡ򷵻NULL do { - if (mCB.bStact==CMD_CAN_SEND) //ıһ·͵״̬ + if (mCB.bStact==CMD_CAN_SEND) //ıһ·͵״̬ { - szBuffer = mCB.GetNextScreen(dwSize); + if (szBuffer = mCB.GetNextScreen(dwSize)) //ǷȡƵ + break; } - } while (szBuffer==NULL && !m_bExit); + Sleep(50); + } while (!m_bExit && --n); return szBuffer; }