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
66365948
Commit
66365948
authored
Nov 03, 2009
by
Ludovic Fauvet
Browse files
Use a rounded value to compute the frames
parent
9138fc1d
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Renderer/ClipRenderer.cpp
View file @
66365948
...
...
@@ -215,7 +215,7 @@ qint64 ClipRenderer::getCurrentFrame() const
{
if
(
m_clipLoaded
==
false
||
m_isRendering
==
false
||
m_selectedMedia
==
NULL
)
return
0
;
return
m_mediaPlayer
->
get
Position
()
*
(
m_end
-
m_begin
)
-
m_begin
;
return
qRound64
(
(
qreal
)
m_mediaPlayer
->
get
Time
()
/
1000
*
(
qreal
)
m_selectedMedia
->
getFps
()
)
;
}
float
ClipRenderer
::
getFps
()
const
...
...
src/Renderer/GenericRenderer.h
View file @
66365948
...
...
@@ -100,7 +100,7 @@ public:
*/
qint64
getLength
()
const
{
return
getLengthMs
()
/
1000
*
getFps
();
return
qRound64
(
(
qreal
)
getLengthMs
()
/
1000
*
(
qreal
)
getFps
()
)
;
}
/**
...
...
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