X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fdelayvideo%2Fdelayvideo.C;h=2ec90f04f3a7f916b08fa638e1820d17d280dc45;hp=a3f7db6b8c0c7526e017b7e80bd62a48066da1ea;hb=b2eb290b3f6e5c233393017aa152e67c76243130;hpb=21c2e6b36d6a96c2f662a89459d607b5a387f4eb diff --git a/cinelerra-5.1/plugins/delayvideo/delayvideo.C b/cinelerra-5.1/plugins/delayvideo/delayvideo.C index a3f7db6b..2ec90f04 100644 --- a/cinelerra-5.1/plugins/delayvideo/delayvideo.C +++ b/cinelerra-5.1/plugins/delayvideo/delayvideo.C @@ -195,12 +195,8 @@ void DelayVideo::reconfigure() for(int i = reuse; i < new_allocation; i++) { - new_buffer[i] = new VFrame(0, - -1, - input->get_w(), - input->get_h(), - PluginVClient::project_color_model, - -1); + new_buffer[i] = new VFrame(input->get_w(), input->get_h(), + PluginVClient::project_color_model, 0); } for(int i = reuse; i < allocation; i++) @@ -250,7 +246,7 @@ int DelayVideo::is_realtime() return 1; } -const char* DelayVideo::plugin_title() { return _("Delay Video"); } +const char* DelayVideo::plugin_title() { return N_("Delay Video"); } LOAD_CONFIGURATION_MACRO(DelayVideo, DelayVideoConfig) NEW_WINDOW_MACRO(DelayVideo, DelayVideoWindow) @@ -259,7 +255,7 @@ NEW_WINDOW_MACRO(DelayVideo, DelayVideoWindow) void DelayVideo::save_data(KeyFrame *keyframe) { FileXML output; - output.set_shared_output(keyframe->get_data(), MESSAGESIZE); + output.set_shared_output(keyframe->xbuf); output.tag.set_title("DELAYVIDEO"); output.tag.set_property("LENGTH", (double)config.length); @@ -273,7 +269,7 @@ void DelayVideo::save_data(KeyFrame *keyframe) void DelayVideo::read_data(KeyFrame *keyframe) { FileXML input; - input.set_shared_input(keyframe->get_data(), strlen(keyframe->get_data())); + input.set_shared_input(keyframe->xbuf); int result = 0; while(!result)