Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
9
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Elias Steurer
ScreenPlay
Commits
6a3872fb
Commit
6a3872fb
authored
Jan 16, 2021
by
Elias Steurer
🇩🇪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix cpp formatting
parent
4d37a513
Pipeline
#242611225
passed with stages
in 19 minutes and 33 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
ScreenPlay/src/createimportvideo.cpp
ScreenPlay/src/createimportvideo.cpp
+2
-1
ScreenPlaySDK/src/screenplaysdk.cpp
ScreenPlaySDK/src/screenplaysdk.cpp
+1
-1
No files found.
ScreenPlay/src/createimportvideo.cpp
View file @
6a3872fb
...
...
@@ -244,7 +244,8 @@ bool CreateImportVideo::analyzeWebmReadFrames(const QJsonObject& obj)
// If the video is to short
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
;
return
true
;
}
...
...
ScreenPlaySDK/src/screenplaysdk.cpp
View file @
6a3872fb
...
...
@@ -78,7 +78,7 @@ void ScreenPlaySDK::disconnected()
void
ScreenPlaySDK
::
readyRead
()
{
QString
tmp
=
m_socket
.
readAll
();
QJsonParseError
err
{};
QJsonParseError
err
{};
auto
doc
=
QJsonDocument
::
fromJson
(
QByteArray
::
fromStdString
(
tmp
.
toStdString
()),
&
err
);
if
(
!
(
err
.
error
==
QJsonParseError
::
NoError
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment