dynamic keyframes, textbox rework, andrea ffmpeg.opts, perpetual chkpt undo, lv2...
[goodguy/history.git] / cinelerra-5.1 / plugins / linearblur / linearblur.C
index 8f6cab2feb3a43f45b0a34ddb085f90098930c9b..af6cb826510f8a8bdab291c01b25dc5b8a3e85ff 100644 (file)
@@ -388,7 +388,7 @@ LinearBlurMain::~LinearBlurMain()
        if(temp) delete temp;
 }
 
-const char* LinearBlurMain::plugin_title() { return _("Linear Blur"); }
+const char* LinearBlurMain::plugin_title() { return N_("Linear Blur"); }
 int LinearBlurMain::is_realtime() { return 1; }
 
 
@@ -518,12 +518,9 @@ int LinearBlurMain::process_buffer(VFrame *frame,
        this->output = frame;
 
 
-       if(!temp) temp = new VFrame(0,
-               -1,
-               frame->get_w(),
-               frame->get_h(),
-               frame->get_color_model(),
-               -1);
+       if(!temp)
+               temp = new VFrame(frame->get_w(), frame->get_h(),
+                       frame->get_color_model(), 0);
        temp->copy_from(frame);
        this->input = temp;
 
@@ -562,7 +559,7 @@ void LinearBlurMain::save_data(KeyFrame *keyframe)
        FileXML output;
 
 // cause data to be stored directly in text
-       output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
+       output.set_shared_output(keyframe->xbuf);
        output.tag.set_title("LINEARBLUR");
 
        output.tag.set_property("RADIUS", config.radius);
@@ -583,7 +580,7 @@ void LinearBlurMain::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;