From 45ba8c1f6677584c03af19665cb7d0dc0bdd115e Mon Sep 17 00:00:00 2001 From: Barry <870709864@qq.com> Date: Sun, 27 Jan 2019 14:41:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=B8=8D=E5=BD=95=E5=83=8F=E6=97=B6?= =?UTF-8?q?=E4=BC=A0=E9=80=92sendframemeta=20false=20=E7=BB=99server?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- QtScrcpy/videoform.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/QtScrcpy/videoform.cpp b/QtScrcpy/videoform.cpp index e15e51b..0e16338 100644 --- a/QtScrcpy/videoform.cpp +++ b/QtScrcpy/videoform.cpp @@ -41,6 +41,7 @@ VideoForm::VideoForm(const QString& serial, quint16 maxSize, quint32 bitRate, co // fix: macos cant recv finished signel, timer is ok QTimer::singleShot(0, this, [this](){ + bool sendFrameMeta = m_recorder ? true : false; m_startTimeCount.start(); // max size support 480p 720p 1080p 设备原生分辨率 // support wireless connect, example: @@ -48,7 +49,7 @@ VideoForm::VideoForm(const QString& serial, quint16 maxSize, quint32 bitRate, co // only one devices, serial can be null // mark: crop input format: "width:height:x:y" or - for no crop, for example: "100:200:0:0" // sendFrameMeta for recorder mp4 - m_server->start(m_serial, 27183, m_maxSize, m_bitRate, "-", true); + m_server->start(m_serial, 27183, m_maxSize, m_bitRate, "-", sendFrameMeta); }); updateShowSize(size());