From 7179678cc17139563f22162c4ae672233426c3d2 Mon Sep 17 00:00:00 2001 From: rankun Date: Mon, 19 Nov 2018 10:01:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E9=BB=98=E8=AE=A4=E8=AE=BE?= =?UTF-8?q?=E5=A4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- QtScrcpy/server/server.cpp | 6 +----- QtScrcpy/videoform.cpp | 4 +++- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/QtScrcpy/server/server.cpp b/QtScrcpy/server/server.cpp index 4fc2ec8..3112a0d 100644 --- a/QtScrcpy/server/server.cpp +++ b/QtScrcpy/server/server.cpp @@ -155,11 +155,7 @@ bool Server::execute() } bool Server::start(const QString& serial, quint16 localPort, quint16 maxSize, quint32 bitRate, const QString& crop) -{ - if (serial.isEmpty()) { - return false; - } - +{ m_serial = serial; m_localPort = localPort; m_maxSize = maxSize; diff --git a/QtScrcpy/videoform.cpp b/QtScrcpy/videoform.cpp index f3113e8..30d250a 100644 --- a/QtScrcpy/videoform.cpp +++ b/QtScrcpy/videoform.cpp @@ -79,7 +79,9 @@ VideoForm::VideoForm(QWidget *parent) : // support 480p 720p 1080p //m_server->start("P7C0218510000537", 27183, 0, 8000000, ""); //m_server->start("P7C0218510000537", 27183, 1080, 8000000, ""); - m_server->start("P7C0218510000537", 27183, 720, 8000000, ""); + + // only one devices, serial can be null + m_server->start("", 27183, 720, 8000000, ""); // support wireless connect //m_server->start("192.168.0.174:5555", 27183, 720, 8000000, "");