dynamic keyframes, textbox rework, andrea ffmpeg.opts, perpetual chkpt undo, lv2...
[goodguy/history.git] / cinelerra-5.1 / plugins / 720to480 / 720to480.C
index fcc1a47d6d6a485876382d711bcadb043316189c..c1af6c277d61083dc1420bf9e2234be63b332ff8 100644 (file)
@@ -189,7 +189,7 @@ _720to480Main::~_720to480Main()
        if(temp) delete temp;
 }
 
-const char* _720to480Main::plugin_title() { return _("720 to 480"); }
+const char* _720to480Main::plugin_title() { return N_("720 to 480"); }
 int _720to480Main::is_realtime() { return 0; }
 
 double _720to480Main::get_framerate()
@@ -330,12 +330,8 @@ int _720to480Main::process_loop(VFrame *output)
        int result = 0;
 
        if(!temp)
-               temp = new VFrame(0,
-                       -1,
-                       output->get_w(),
-                       output->get_h(),
-                       output->get_color_model(),
-                       -1);
+               temp = new VFrame(output->get_w(), output->get_h(),
+                               output->get_color_model(), 0);
 
        if(config.direction == FORWARD)
        {
@@ -365,7 +361,7 @@ int _720to480Main::process_loop(VFrame *output)
 void _720to480Main::save_data(KeyFrame *keyframe)
 {
        FileXML output;
-       output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
+       output.set_shared_output(keyframe->xbuf);
        output.tag.set_title("720TO480");
        output.tag.set_property("FIRST_FIELD", config.first_field);
        output.tag.set_property("DIRECTION", config.direction);
@@ -379,7 +375,7 @@ void _720to480Main::save_data(KeyFrame *keyframe)
 void _720to480Main::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())
        {