X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;ds=sidebyside;f=cinelerra-5.1%2Fcinelerra%2Fplugin.C;h=64b43072bb588432666fac3eeb0f9514119287a1;hb=7befc439d48ecf3591a0e8f420a447e8c1ec7250;hp=09d003b318c77513d1babf62bc505f9fc34fd974;hpb=04293346a5ef49683cfa6ca3a98ef6cbfcdf7732;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/plugin.C b/cinelerra-5.1/cinelerra/plugin.C index 09d003b3..64b43072 100644 --- a/cinelerra-5.1/cinelerra/plugin.C +++ b/cinelerra-5.1/cinelerra/plugin.C @@ -2,6 +2,7 @@ /* * CINELERRA * Copyright (C) 2008 Adam Williams + * Copyright (C) 2003-2016 Cinelerra CV contributors * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -40,7 +41,6 @@ Plugin::Plugin(EDL *edl, Track *track, const char *title) : Edit(edl, track) { - is_plugin = 1; this->track = track; this->plugin_set = 0; strcpy(this->title, title); @@ -50,7 +50,7 @@ Plugin::Plugin(EDL *edl, Track *track, const char *title) show = 0; on = 1; gui_id = -1; - keyframes = new KeyFrames(edl, track); + keyframes = new KeyFrames(edl, this); keyframes->create_objects(); } @@ -58,7 +58,6 @@ Plugin::Plugin(EDL *edl, Track *track, const char *title) Plugin::Plugin(EDL *edl, PluginSet *plugin_set, const char *title) : Edit(edl, plugin_set) { - is_plugin = 1; this->track = plugin_set->track; this->plugin_set = plugin_set; strcpy(this->title, title); @@ -68,7 +67,7 @@ Plugin::Plugin(EDL *edl, PluginSet *plugin_set, const char *title) show = 0; on = 1; gui_id = -1; - keyframes = new KeyFrames(edl, track); + keyframes = new KeyFrames(edl, this); keyframes->create_objects(); } @@ -132,7 +131,7 @@ void Plugin::copy_base(Edit *edit) this->startsource = edit->startsource; this->startproject = edit->startproject; this->length = edit->length; - + this->orig_id = edit->orig_id; this->plugin_type = plugin->plugin_type; this->in = plugin->in; @@ -579,8 +578,8 @@ void Plugin::shift(int64_t difference) void Plugin::dump(FILE *fp) { - fprintf(fp," PLUGIN: type=%d title=\"%s\" on=%d track=%d plugin=%d gui_id=%d\n", - plugin_type, title, on, shared_location.module, shared_location.plugin, gui_id); + fprintf(fp," PLUGIN: type=%d, id %d, orig_id %d, title=\"%s\" on=%d track=%d plugin=%d gui_id=%d\n", + plugin_type, id, orig_id, title, on, shared_location.module, shared_location.plugin, gui_id); fprintf(fp," startproject %jd length %jd\n", startproject, length); keyframes->dump(fp);