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
Operations
Operations
Incidents
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
4e6cbbc1
Commit
4e6cbbc1
authored
May 29, 2009
by
Hugo Beauzee-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Solved crash when moving to non first video with the slider
parent
844eb31a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
src/Workflow/TrackWorkflow.cpp
src/Workflow/TrackWorkflow.cpp
+6
-7
No files found.
src/Workflow/TrackWorkflow.cpp
View file @
4e6cbbc1
...
...
@@ -70,7 +70,7 @@ void TrackWorkflow::startRender()
// qDebug() << "Waiting for the first clip to be ready";
//We wait to be sure the ClipWorkflow will be ready when we really start to render.
while
(
m_clips
.
begin
().
value
()
->
isReady
()
==
false
)
usleep
(
15
0
);
usleep
(
2
0
);
if
(
m_current
.
key
()
==
0
)
{
m_current
=
m_clips
.
begin
();
...
...
@@ -102,15 +102,14 @@ bool TrackWorkflow::checkNextClip( qint64 currentFrame )
//If it's about to be used, initialize it
if
(
next
.
key
()
==
currentFrame
+
TrackWorkflow
::
nbFrameBeforePreload
)
{
//
qDebug() << "Initializing next clipWorkflow";
qDebug
()
<<
"Initializing next clipWorkflow"
;
next
.
value
()
->
initialize
(
m_mediaPlayer
);
}
else
if
(
next
.
key
()
==
currentFrame
)
{
//It should have been initialized now, however, this ain't very safe :/
//TODO: remove this.
Q_ASSERT
(
next
.
value
()
->
isReady
()
);
// qDebug() << "Switching current clip workflow";
while
(
next
.
value
()
->
isReady
()
==
false
)
usleep
(
20
);
qDebug
()
<<
"Switching current clip workflow"
;
//Using it as the current clip from now on.
m_current
=
next
;
m_current
.
value
()
->
startRender
();
...
...
@@ -258,7 +257,7 @@ void TrackWorkflow::setPosition( float pos )
it
.
value
()
->
initialize
(
m_mediaPlayer
);
while
(
it
.
value
()
->
isReady
()
==
false
)
usleep
(
15
0
);
usleep
(
2
0
);
it
.
value
()
->
startRender
();
m_current
=
it
;
// qDebug() << "Switched current clip workflow";
...
...
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