Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLMC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
21
Issues
21
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
VLMC
Commits
de2f7604
Commit
de2f7604
authored
May 25, 2009
by
Hugo Beauzee-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Using float for clip begin and end (so that matches vlc's position)
parent
c3c2933d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
src/Clip.cpp
src/Clip.cpp
+3
-3
src/Clip.h
src/Clip.h
+5
-5
No files found.
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