X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fplugin.C;h=5890808b5617010cb93fff45858fb0e2765fcd86;hp=b4c8e4431c216913772eca95c41c3032ea5f329f;hb=834732af87bfd7f1d4035109f31e48db12b415fa;hpb=0c086b3e7b552e0f6b06c8696d7682d9d4bd91db diff --git a/cinelerra-5.1/cinelerra/plugin.C b/cinelerra-5.1/cinelerra/plugin.C index b4c8e443..5890808b 100644 --- a/cinelerra-5.1/cinelerra/plugin.C +++ b/cinelerra-5.1/cinelerra/plugin.C @@ -109,6 +109,20 @@ void Plugin::clear_keyframes(int64_t start, int64_t end) } +void Plugin::init(const char *title, + int64_t unit_position, int64_t unit_length, int plugin_type, + SharedLocation *shared_location, KeyFrame *default_keyframe) +{ + if( title ) strcpy(this->title, title); + if( shared_location ) this->shared_location = *shared_location; + this->plugin_type = plugin_type; + if( default_keyframe ) + *this->keyframes->default_auto = *default_keyframe; + this->keyframes->default_auto->position = unit_position; + this->startproject = unit_position; + this->length = unit_length; +} + void Plugin::copy_base(Edit *edit) { Plugin *plugin = (Plugin*)edit;