X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fedl.C;h=a756e6e576bae9999d136b7d27ffe2ef6666c318;hb=ae44cc4a24c9e04ee5e3b38baf6ce529832cfb39;hp=4411bf4bd0c652d0a065bb72f85e32ffbb7648f8;hpb=09ccfde5a1fd65069f69b37490462b7ccf38a336;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/edl.C b/cinelerra-5.1/cinelerra/edl.C index 4411bf4b..a756e6e5 100644 --- a/cinelerra-5.1/cinelerra/edl.C +++ b/cinelerra-5.1/cinelerra/edl.C @@ -410,7 +410,7 @@ void EDL::copy_session(EDL *edl, int session_only) session->copy(edl->session); } - if( !session_only ) { + if( session_only <= 0 ) { local_session->copy_from(edl->local_session); } } @@ -1226,7 +1226,7 @@ const char *EDL::get_folder_name(int no) 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); @@ -1237,7 +1237,7 @@ int EDL::new_folder(const char *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; } @@ -1402,7 +1402,6 @@ int64_t EDL::get_video_frames() session->frame_rate); } - void EDL::remove_vwindow_edls() { for( int i=0; iget(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 ) { @@ -1609,6 +1612,12 @@ void EDL::add_proxy(int use_scaler, } } +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 +