void Edit::insert_transition(char *title)
{
//printf("Edit::insert_transition this=%p title=%p title=%s\n", this, title, title);
- detach_transition();
- transition = new Transition(edl,
- this,
- title,
+ delete transition;
+ transition = new Transition(edl, this, title,
track->to_units(edl->session->default_transition_length, 1));
}
int Edit::silence()
{
- if(asset || nested_edl)
- return 0;
- else
- return 1;
+ return asset || nested_edl ? 0 : 1;
}