dynamic keyframes, textbox rework, andrea ffmpeg.opts, perpetual chkpt undo, lv2...
[goodguy/history.git] / cinelerra-5.1 / plugins / decimate / decimate.C
index e7d0d6d3c5f4395e26f4a5b53d29665c99e7884c..5f72ea0c066b76e7eb1d00862bab99e19b0b3ebb 100644 (file)
@@ -708,14 +708,9 @@ int Decimate::process_buffer(VFrame *frame,
 
        if(!frames[0])
        {
-               for(int i = 0; i < TOTAL_FRAMES; i++)
-               {
-                       frames[i] = new VFrame(0,
-                               -1,
-                               frame->get_w(),
-                               frame->get_h(),
-                               frame->get_color_model(),
-                               -1);
+               for(int i = 0; i < TOTAL_FRAMES; i++) {
+                       frames[i] = new VFrame(frame->get_w(), frame->get_h(),
+                                       frame->get_color_model(), 0);
                }
        }
 
@@ -744,7 +739,7 @@ int Decimate::process_buffer(VFrame *frame,
 
 
 
-const char* Decimate::plugin_title() { return _("Decimate"); }
+const char* Decimate::plugin_title() { return N_("Decimate"); }
 int Decimate::is_realtime() { return 1; }
 
 NEW_WINDOW_MACRO(Decimate, DecimateWindow)
@@ -766,7 +761,7 @@ void Decimate::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("DECIMATE");
        output.tag.set_property("INPUT_RATE", config.input_rate);
 //     output.tag.set_property("AVERAGED_FRAMES", config.averaged_frames);
@@ -782,7 +777,7 @@ void Decimate::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())
        {