X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=resample_effect.h;fp=resample_effect.h;h=027a497cc5fb5d6616ad43190117e4f91ed025d9;hp=1822a3ea6b261fa833d59c4e4e2e0e276b83ca4b;hb=3306a4a0d2300767eeef71ab877fdf1587d13475;hpb=1cf2cadebbffbef8c98e493cd53805b70f0fd564 diff --git a/resample_effect.h b/resample_effect.h index 1822a3e..027a497 100644 --- a/resample_effect.h +++ b/resample_effect.h @@ -93,8 +93,8 @@ private: // Both of these are owned by us if owns_effects is true (before finalize()), // and otherwise owned by the EffectChain. - bool owns_effects; - SingleResamplePassEffect *hpass, *vpass; + std::unique_ptr hpass_owner, vpass_owner; + SingleResamplePassEffect *hpass = nullptr, *vpass = nullptr; int input_width, input_height, output_width, output_height; float offset_x, offset_y;