X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Findexable.C;h=2d32e1943fc84e45f9d0969b50fed0b6318c5e26;hb=c279e21fc2394a7908bbd1ba8c79b116fe9fb14a;hp=3aacee67348734a697556c9b6f1e9af2266fb1b4;hpb=d079f6253a75cc8cfedbab636ad0bc7f5dc9c5f5;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/indexable.C b/cinelerra-5.1/cinelerra/indexable.C index 3aacee67..2d32e194 100644 --- a/cinelerra-5.1/cinelerra/indexable.C +++ b/cinelerra-5.1/cinelerra/indexable.C @@ -23,6 +23,7 @@ #include "edl.h" #include "indexable.h" #include "language.h" +#include "localsession.h" #include @@ -73,6 +74,7 @@ void Indexable::update_index(Indexable *src) void Indexable::copy_indexable(Indexable *src) { if( this == src ) return; + awindow_folder = src->awindow_folder; update_path(src->path); update_index(src); } @@ -112,8 +114,11 @@ int64_t Indexable::get_video_frames() return 0; } - - - - +const char *Indexable::get_title() +{ + if( is_asset ) return path; + EDL *edl = (EDL*)this; + if( !edl->parent_edl || awindow_folder == AW_PROXY_FOLDER ) return path; + return edl->local_session->clip_title; +}