X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fthreshold%2Fthreshold.C;h=ad68519830ef042fc89489cf7a402f7ad45c624b;hb=b2eb290b3f6e5c233393017aa152e67c76243130;hp=13231b6e653c9719b82936a88ba596129fbcd6bd;hpb=a6369311556cc1e1877142181d8606e4f68aa803;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/plugins/threshold/threshold.C b/cinelerra-5.1/plugins/threshold/threshold.C index 13231b6e..ad685198 100644 --- a/cinelerra-5.1/plugins/threshold/threshold.C +++ b/cinelerra-5.1/plugins/threshold/threshold.C @@ -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) {