dragcheckbox rework, boxblur create can grab
[goodguy/cinelerra.git] / cinelerra-5.1 / plugins / crikey / crikey.C
index 250397a13452f73020a41b17864b798c42657599..d5a6cd13f4c740dc711adeb03472821c14e5ce0e 100644 (file)
@@ -27,6 +27,7 @@
 #include "bccmodels.h"
 #include "bccolors.h"
 #include "clip.h"
+#include "edl.h"
 #include "edlsession.h"
 #include "filexml.h"
 #include "crikey.h"
@@ -263,7 +264,7 @@ LOAD_CONFIGURATION_MACRO(CriKey, CriKeyConfig)
 
 int CriKey::new_point()
 {
-       EDLSession *session = get_edlsession();
+       EDLSession *session = get_edl()->session;
        float x = !session ? 0.f : session->output_w / 2.f;
        float y = !session ? 0.f : session->output_h / 2.f;
        return config.add_point(-1, 0, x, y, 0.5f);
@@ -606,7 +607,7 @@ int CriKey::process_buffer(VFrame *frame, int64_t start_position, double frame_r
                if( !pt->e ) continue;
                if( set_target(engine->color, pt->x, pt->y) ) continue;
                engine->threshold = pt->t;
-               edg->clear_frame();
+               edg->black_frame();
                engine->process_packages();
                fill_edge(edg, w, h);
                FillRegion fill_region(edg, msk);