fix mask vframe setup, add unshared vframe constructor
[goodguy/history.git] / cinelerra-5.1 / plugins / polar / polar.C
index 68e378bd07d308890d5c4ef192f9180c591fa9b8..f226720ac6023a087b1c6f9f5cf2de1308913998 100644 (file)
@@ -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;
                }