dynamic keyframes, textbox rework, andrea ffmpeg.opts, perpetual chkpt undo, lv2...
[goodguy/history.git] / cinelerra-5.1 / plugins / delayvideo / delayvideo.C
index a3f7db6b8c0c7526e017b7e80bd62a48066da1ea..2ec90f04f3a7f916b08fa638e1820d17d280dc45 100644 (file)
@@ -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)