dynamic keyframes, textbox rework, andrea ffmpeg.opts, perpetual chkpt undo, lv2...
[goodguy/history.git] / cinelerra-5.1 / plugins / threshold / threshold.C
index 13231b6e653c9719b82936a88ba596129fbcd6bd..ad68519830ef042fc89489cf7a402f7ad45c624b 100644 (file)
@@ -127,7 +127,7 @@ ThresholdMain::~ThresholdMain()
        delete threshold_engine;
 }
 
-const char* ThresholdMain::plugin_title() { return _("Threshold"); }
+const char* ThresholdMain::plugin_title() { return N_("Threshold"); }
 int ThresholdMain::is_realtime() { return 1; }
 
 
@@ -169,7 +169,7 @@ int ThresholdMain::process_buffer(VFrame *frame,
 void ThresholdMain::save_data(KeyFrame *keyframe)
 {
        FileXML output;
-       output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
+       output.set_shared_output(keyframe->xbuf);
        output.tag.set_title("THRESHOLD");
        output.tag.set_property("MIN", config.min);
        output.tag.set_property("MAX", config.max);
@@ -187,8 +187,7 @@ void ThresholdMain::save_data(KeyFrame *keyframe)
 void ThresholdMain::read_data(KeyFrame *keyframe)
 {
        FileXML input;
-       const char *data = keyframe->get_data();
-       input.set_shared_input((char *)data, strlen(data));
+       input.set_shared_input(keyframe->xbuf);
        int result = 0;
        while(!result)
        {