mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-07 03:22:33 +01:00
Fix cpp formatting
This commit is contained in:
parent
4d37a513e4
commit
6a3872fb2a
@ -244,7 +244,8 @@ bool CreateImportVideo::analyzeWebmReadFrames(const QJsonObject& obj)
|
|||||||
|
|
||||||
// If the video is to short
|
// If the video is to short
|
||||||
m_smallVideo = m_numberOfFrames < (m_framerate * 5);
|
m_smallVideo = m_numberOfFrames < (m_framerate * 5);
|
||||||
m_length = std::ceil(m_numberOfFrames / m_framerate); ;
|
m_length = std::ceil(m_numberOfFrames / m_framerate);
|
||||||
|
|
||||||
qInfo() << m_numberOfFrames << m_framerate << m_smallVideo << m_length;
|
qInfo() << m_numberOfFrames << m_framerate << m_smallVideo << m_length;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -78,7 +78,7 @@ void ScreenPlaySDK::disconnected()
|
|||||||
void ScreenPlaySDK::readyRead()
|
void ScreenPlaySDK::readyRead()
|
||||||
{
|
{
|
||||||
QString tmp = m_socket.readAll();
|
QString tmp = m_socket.readAll();
|
||||||
QJsonParseError err{};
|
QJsonParseError err {};
|
||||||
auto doc = QJsonDocument::fromJson(QByteArray::fromStdString(tmp.toStdString()), &err);
|
auto doc = QJsonDocument::fromJson(QByteArray::fromStdString(tmp.toStdString()), &err);
|
||||||
|
|
||||||
if (!(err.error == QJsonParseError::NoError)) {
|
if (!(err.error == QJsonParseError::NoError)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user