Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
luyikei
VLMC
Commits
ac25b4f4
Commit
ac25b4f4
authored
Feb 24, 2014
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TrackWorkflow: Account for slow or late initialization
parent
31d29918
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/Workflow/TrackWorkflow.cpp
src/Workflow/TrackWorkflow.cpp
+4
-3
No files found.
src/Workflow/TrackWorkflow.cpp
View file @
ac25b4f4
...
...
@@ -192,9 +192,10 @@ TrackWorkflow::renderClip( ClipWorkflow* cw, qint64 currentFrame,
adjustClipTime
(
currentFrame
,
start
,
cw
);
return
cw
->
getOutput
(
mode
,
currentFrame
-
start
);
}
else
if
(
state
==
ClipWorkflow
::
Stopped
)
else
if
(
state
==
ClipWorkflow
::
Stopped
||
state
==
ClipWorkflow
::
Initializing
)
{
cw
->
initialize
();
if
(
state
==
ClipWorkflow
::
Stopped
)
cw
->
initialize
();
//If the init failed, don't even try to call getOutput.
if
(
cw
->
waitForCompleteInit
()
==
false
)
return
NULL
;
...
...
@@ -214,7 +215,7 @@ TrackWorkflow::renderClip( ClipWorkflow* cw, qint64 currentFrame,
}
else
{
vlmc
Critical
()
<<
"Unexpected state:
"
<<
state
;
vlmc
Fatal
(
"Unexpected state:
%d "
,
state
)
;
}
return
NULL
;
}
...
...
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