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
b537a045
Commit
b537a045
authored
Nov 03, 2009
by
Ludovic Fauvet
Browse files
Expose the length of the video in frames through the renderer
parent
e6184c29
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Renderer/GenericRenderer.h
View file @
b537a045
...
...
@@ -65,6 +65,14 @@ public:
virtual
qint64
getCurrentFrame
()
const
=
0
;
virtual
float
getFps
()
const
=
0
;
/**
* \brief Return the length is frames
* \warning The returned value may not be accurate
*/
qint64
getLength
()
const
{
return
getLengthMs
()
/
1000
*
getFps
();
}
bool
isPaused
()
const
{
return
m_paused
;
...
...
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