olaf neophyte and de.po updates, valgrind tweaks, delete green lady, inkscape dpi=96
[goodguy/history.git] / cinelerra-5.1 / plugins / polar / polar.C
index 68e378bd07d308890d5c4ef192f9180c591fa9b8..08933b59bf7c052ac5e8a4171c3eb2de5556eef9 100644 (file)
@@ -282,7 +282,7 @@ PolarEffect::~PolarEffect()
 
 
 
-const char* PolarEffect::plugin_title() { return _("Polar"); }
+const char* PolarEffect::plugin_title() { return N_("Polar"); }
 int PolarEffect::is_realtime() { return 1; }
 
 
@@ -311,7 +311,7 @@ void PolarEffect::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("POLAR");
        output.tag.set_property("DEPTH", config.depth);
        output.tag.set_property("ANGLE", config.angle);
@@ -326,7 +326,7 @@ void PolarEffect::read_data(KeyFrame *keyframe)
 {
        FileXML input;
 
-       input.set_shared_input(keyframe->get_data(), strlen(keyframe->get_data()));
+       input.set_shared_input(keyframe->xbuf);
 
        while(!input.read_tag())
        {
@@ -354,12 +354,9 @@ int PolarEffect::process_realtime(VFrame *input, VFrame *output)
        {
                if(input->get_rows()[0] == output->get_rows()[0])
                {
-                       if(!temp_frame) temp_frame = new VFrame(0,
-                               -1,
-                               input->get_w(),
-                               input->get_h(),
-                               input->get_color_model(),
-                               -1);
+                       if(!temp_frame)
+                               temp_frame = new VFrame(input->get_w(), input->get_h(),
+                                       input->get_color_model(), 0);
                        temp_frame->copy_from(input);
                        this->input = temp_frame;
                }