session->copy(edl->session);
}
- if( !session_only ) {
+ if( session_only <= 0 ) {
local_session->copy_from(edl->local_session);
}
}
return !fp ? "" : fp->title;
}
-int EDL::new_folder(const char *title)
+int EDL::new_folder(const char *title, int is_clips)
{
if( !title[0] ) return 1;
int ret = get_folder_number(title);
int no = fp->awindow_folder;
if( no >= idx ) idx = no+1;
}
- folders.append(new BinFolder(idx, title));
+ folders.append(new BinFolder(idx, is_clips, title));
return 0;
}
session->frame_rate);
}
-
void EDL::remove_vwindow_edls()
{
for( int i=0; i<total_vwindow_edls(); ++i ) {
Indexable *proxy_idxbl = proxy_assets->get(i);
proxy_idxbl->awindow_folder = awindow_folder;
Asset *proxy_asset = proxy_idxbl->is_asset ? assets->update((Asset *)proxy_idxbl) : 0;
+ if( proxy_asset && proxy_idxbl ) {
+ proxy_asset->width = proxy_idxbl->get_w();
+ proxy_asset->height = proxy_idxbl->get_h();
+ }
EDL *proxy_edl = !proxy_idxbl->is_asset ? (EDL *)proxy_idxbl : 0;
// replace track contents
for( Track *track=tracks->first; track; track=track->next ) {
}
}
+Asset *EDL::get_proxy_asset()
+{
+ return awindow_folder == AW_PROXY_FOLDER ?
+ tracks->first->edits->first->asset : 0;
+}
+
double EDL::get_cursor_position(int cursor_x, int pane_no)
{
return (double)cursor_x * local_session->zoom_sample / session->sample_rate +