Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLMC
Commits
18ea3b1f
Commit
18ea3b1f
authored
Nov 12, 2009
by
Hugo Beauzee-Luyssen
Browse files
Correcting length bugs
parent
b3586a5c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/GUI/Import/ImportController.cpp
View file @
18ea3b1f
...
...
@@ -139,7 +139,7 @@ void ImportController::setUIMetaData( Media* media )
{
//Duration
QTime
duration
;
duration
=
duration
.
addSecs
(
media
->
getLengthMS
()
);
duration
=
duration
.
add
M
Secs
(
media
->
getLengthMS
()
);
m_ui
->
durationValueLabel
->
setText
(
duration
.
toString
(
"hh:mm:ss"
)
);
//Filename || title
m_ui
->
nameValueLabel
->
setText
(
media
->
getFileInfo
()
->
fileName
()
);
...
...
src/Media/Clip.cpp
View file @
18ea3b1f
...
...
@@ -109,7 +109,7 @@ void Clip::computeLength()
if
(
fps
<
0.1
f
)
fps
=
FPS
;
m_length
=
m_end
-
m_begin
;
m_lengthSeconds
=
m_length
*
fps
;
m_lengthSeconds
=
m_length
/
fps
;
emit
lengthUpdated
();
}
else
...
...
Write
Preview
Supports
Markdown
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