dynamic keyframes, textbox rework, andrea ffmpeg.opts, perpetual chkpt undo, lv2...
[goodguy/history.git] / cinelerra-5.1 / plugins / compressor / compressor.C
index 9797bc3d690e0a79483998cc56ee8edbc81f273a..25eea16e5f6b0e74bc26bfb08d692cc7313db84e 100644 (file)
@@ -114,7 +114,7 @@ void CompressorEffect::reset()
        current_value = 1.0;
 }
 
-const char* CompressorEffect::plugin_title() { return _("Compressor"); }
+const char* CompressorEffect::plugin_title() { return N_("Compressor"); }
 int CompressorEffect::is_realtime() { return 1; }
 int CompressorEffect::is_multichannel() { return 1; }
 
@@ -123,7 +123,7 @@ int CompressorEffect::is_multichannel() { return 1; }
 void CompressorEffect::read_data(KeyFrame *keyframe)
 {
        FileXML input;
-       input.set_shared_input(keyframe->get_data(), strlen(keyframe->get_data()));
+       input.set_shared_input(keyframe->xbuf);
 
        int result = 0;
        config.levels.remove_all();
@@ -157,7 +157,7 @@ void CompressorEffect::read_data(KeyFrame *keyframe)
 void CompressorEffect::save_data(KeyFrame *keyframe)
 {
        FileXML output;
-       output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
+       output.set_shared_output(keyframe->xbuf);
 
        output.tag.set_title("COMPRESSOR");
        output.tag.set_property("TRIGGER", config.trigger);
@@ -1071,6 +1071,7 @@ CompressorCanvas::CompressorCanvas(CompressorEffect *plugin, int x, int y, int w
 {
        this->plugin = plugin;
        current_operation = NONE;
+       current_point = 0;
 }
 
 int CompressorCanvas::button_press_event()