projects
/
goodguy
/
cinelerra.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add unclear btn icons, make both bksp and ctrl-m mute edit selection
[goodguy/cinelerra.git]
/
cinelerra-5.1
/
cinelerra
/
pluginset.C
diff --git
a/cinelerra-5.1/cinelerra/pluginset.C
b/cinelerra-5.1/cinelerra/pluginset.C
index a0d3b6c2b494aa8976853ffabacd29206c5989aa..e1f1215e9f6beba10f7bd85ac7f7aa6062296269 100644
(file)
--- a/
cinelerra-5.1/cinelerra/pluginset.C
+++ b/
cinelerra-5.1/cinelerra/pluginset.C
@@
-442,6
+442,13
@@
int PluginSet::optimize()
int result = 1;
Plugin *current_edit;
int result = 1;
Plugin *current_edit;
+// trim plugins before position 0
+ while( first && first->startproject+first->length < 0 )
+ delete first;
+ if( first && first->startproject < 0 ) {
+ first->length += first->startproject;
+ first->startproject = 0;
+ }
// Delete keyframes out of range
for(current_edit = (Plugin*)first;
// Delete keyframes out of range
for(current_edit = (Plugin*)first;