dynamic keyframes, textbox rework, andrea ffmpeg.opts, perpetual chkpt undo, lv2...
[goodguy/history.git] / cinelerra-5.1 / plugins / 1080to480 / 1080to480.C
index fc18c5b1f918f52114c0cc96671c45083e2fccfd..6b522295ea0d46caeb59df4e2b5e7cb1293ce50f 100644 (file)
@@ -155,7 +155,7 @@ _1080to480Main::~_1080to480Main()
        if(temp) delete temp;
 }
 
-const char* _1080to480Main::plugin_title() { return _("1080 to 480"); }
+const char* _1080to480Main::plugin_title() { return N_("1080 to 480"); }
 int _1080to480Main::is_realtime() { return 1; }
 
 NEW_WINDOW_MACRO(_1080to480Main, _1080to480Window)
@@ -237,7 +237,7 @@ int _1080to480Main::process_realtime(VFrame *input, VFrame *output)
        load_configuration();
        if(!temp)
        {
-               temp = new VFrame(input->get_w(), input->get_h(), input->get_color_model());
+               temp = new VFrame(input->get_w(), input->get_h(), input->get_color_model(), 0);
                temp->clear_frame();
        }
 
@@ -253,7 +253,7 @@ int _1080to480Main::process_realtime(VFrame *input, VFrame *output)
 void _1080to480Main::save_data(KeyFrame *keyframe)
 {
        FileXML output;
-       output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
+       output.set_shared_output(keyframe->xbuf);
        output.tag.set_title("1080TO480");
        output.tag.set_property("FIRST_FIELD", config.first_field);
        output.append_tag();
@@ -266,7 +266,7 @@ void _1080to480Main::save_data(KeyFrame *keyframe)
 void _1080to480Main::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())
        {