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
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
luyikei
VLMC
Commits
03552a88
Commit
03552a88
authored
Feb 04, 2010
by
Hugo Beauzee-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Solving crash when loading a project
parent
d964bcf1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
src/Gui/timeline/TracksView.cpp
src/Gui/timeline/TracksView.cpp
+12
-4
No files found.
src/Gui/timeline/TracksView.cpp
View file @
03552a88
...
...
@@ -180,15 +180,20 @@ void TracksView::addMediaItem( Clip* clip, unsigned int track, MainWorkflow::Tra
{
Q_ASSERT
(
clip
);
qDebug
()
<<
"adding clip to track"
<<
track
;
qDebug
()
<<
"nb track video:"
<<
m_numVideoTrack
<<
"nb track audio"
<<
m_numAudioTrack
;
// If there is not enough tracks to insert
// the clip do it now.
if
(
trackType
==
MainWorkflow
::
VideoTrack
)
{
if
(
track
>
(
quint32
)
m_numVideoTrack
)
if
(
track
>
=
m_numVideoTrack
)
{
unsigned
int
nbTrackToAdd
=
track
-
m_numVideoTrack
;
unsigned
int
nbTrackToAdd
=
track
-
m_numVideoTrack
+
1
;
for
(
unsigned
int
i
=
0
;
i
<
nbTrackToAdd
;
++
i
)
{
qDebug
()
<<
"adding video track"
;
addVideoTrack
();
}
}
// Add the empty upper track
if
(
track
+
1
==
m_numVideoTrack
)
...
...
@@ -196,11 +201,14 @@ void TracksView::addMediaItem( Clip* clip, unsigned int track, MainWorkflow::Tra
}
else
if
(
trackType
==
MainWorkflow
::
AudioTrack
)
{
if
(
track
>
(
quint32
)
m_numAudioTrack
)
if
(
track
>
=
m_numAudioTrack
)
{
unsigned
int
nbTrackToAdd
=
track
-
m_numAudioTrack
;
unsigned
int
nbTrackToAdd
=
track
-
m_numAudioTrack
+
1
;
for
(
unsigned
int
i
=
0
;
i
<
nbTrackToAdd
;
++
i
)
{
qDebug
()
<<
"adding audio track"
;
addAudioTrack
();
}
}
// Add the empty upper track
if
(
track
+
1
==
m_numAudioTrack
)
...
...
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