X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fcrikey%2Fcrikey.C;h=d5a6cd13f4c740dc711adeb03472821c14e5ce0e;hb=c8ada3e79b5bf9b8282bdcc8fe858f24c6ac0715;hp=250397a13452f73020a41b17864b798c42657599;hpb=d66d68b9a5228a2f5894ea39e852df19036af800;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/plugins/crikey/crikey.C b/cinelerra-5.1/plugins/crikey/crikey.C index 250397a1..d5a6cd13 100644 --- a/cinelerra-5.1/plugins/crikey/crikey.C +++ b/cinelerra-5.1/plugins/crikey/crikey.C @@ -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);