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
de2f7604
Commit
de2f7604
authored
May 25, 2009
by
Hugo Beauzee-Luyssen
Browse files
Using float for clip begin and end (so that matches vlc's position)
parent
c3c2933d
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Clip.cpp
View file @
de2f7604
...
...
@@ -26,7 +26,7 @@
#include "Clip.h"
Clip
::
Clip
(
Media
*
parent
)
:
m_parent
(
parent
),
m_begin
(
0
),
m_end
(
Clip
::
UntilEndOfMedia
)
Clip
::
Clip
(
Media
*
parent
)
:
m_parent
(
parent
),
m_begin
(
0
.0
f
),
m_end
(
Clip
::
UntilEndOfMedia
)
{
init
();
}
...
...
@@ -46,12 +46,12 @@ void Clip::init()
computeLength
();
}
qint64
Clip
::
getBegin
()
const
float
Clip
::
getBegin
()
const
{
return
m_begin
;
}
qint64
Clip
::
getEnd
()
const
float
Clip
::
getEnd
()
const
{
return
m_end
;
}
...
...
src/Clip.h
View file @
de2f7604
...
...
@@ -38,14 +38,14 @@ class Clip : public QObject
Q_OBJECT
public:
static
const
qint64
UntilEndOfMedia
=
-
1
;
static
const
float
UntilEndOfMedia
=
-
1
.0
;
Clip
(
Media
*
parent
);
Clip
(
Clip
*
creator
,
qint64
begin
,
qint64
end
);
virtual
~
Clip
();
qint64
getBegin
()
const
;
qint64
getEnd
()
const
;
float
getBegin
()
const
;
float
getEnd
()
const
;
qint64
getLength
()
const
;
Media
*
getParent
();
const
QUuid
&
getUuid
()
const
;
...
...
@@ -55,8 +55,8 @@ class Clip : public QObject
void
init
();
Media
*
m_parent
;
qint64
m_begin
;
qint64
m_end
;
float
m_begin
;
float
m_end
;
qint64
m_length
;
QUuid
m_uuid
;
};
...
...
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