X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Flocalsession.C;fp=cinelerra-5.1%2Fcinelerra%2Flocalsession.C;h=771f7f5e378c0aab867e493d883c1ace7d76d556;hb=4a90ef3ae46465c0634f81916b79e279e4bd9961;hp=0008bcd30a1d7051253903cdc2e9de84692e3132;hpb=f87479bd556ea7db4afdd02297fc00977412b873;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/localsession.C b/cinelerra-5.1/cinelerra/localsession.C index 0008bcd3..771f7f5e 100644 --- a/cinelerra-5.1/cinelerra/localsession.C +++ b/cinelerra-5.1/cinelerra/localsession.C @@ -24,6 +24,7 @@ #include "clip.h" #include "bchash.h" #include "edl.h" +#include "filesystem.h" #include "filexml.h" #include "floatauto.h" #include "language.h" @@ -474,6 +475,12 @@ int LocalSession::outpoint_valid() return out_point >= 0; } - +void LocalSession::set_clip_path(Indexable *indexable) +{ + char string[BCTEXTLEN]; + FileSystem fs; + fs.extract_name(string, indexable->path); + strcpy(clip_title, string); +}