Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
VLMC
Commits
a3fbd0fb
Commit
a3fbd0fb
authored
Dec 03, 2009
by
Clement CHAVANCE
Browse files
replaced the Clip's FPS define by a public static const attribute
parent
9c3c736e
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Media/Clip.cpp
View file @
a3fbd0fb
...
...
@@ -107,7 +107,7 @@ void Clip::computeLength()
{
float
fps
=
m_parent
->
getFps
();
if
(
fps
<
0.1
f
)
fps
=
FPS
;
fps
=
Clip
::
Default
FPS
;
m_length
=
m_end
-
m_begin
;
m_lengthSeconds
=
qRound64
(
(
float
)
m_length
/
fps
);
emit
lengthUpdated
();
...
...
src/Media/Clip.h
View file @
a3fbd0fb
...
...
@@ -33,10 +33,6 @@
#include
"Media.h"
//TODO: REMOVE THIS
#ifndef FPS
#define FPS 30
#endif
class
Media
;
...
...
@@ -45,6 +41,7 @@ class Clip : public QObject
Q_OBJECT
public:
static
const
int
DefaultFPS
;
Clip
(
Media
*
parent
);
Clip
(
Media
*
parent
,
qint64
begin
,
qint64
end
);
Clip
(
Clip
*
creator
,
qint64
begin
,
qint64
end
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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