From 7e8f67faedf3a0ccb299fd920cddce39694badd4 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 3 Apr 2014 22:21:38 +0200 Subject: [PATCH] Use the shared ResourcePool also for ad-hoc EffectChains. We sometimes create an EffectChain just to get a temporary MLT image into Movit. This, like any other, should use the ResourcePool. A side-effect of this is that it serves as a temporary workaround for Kdenlive bug 3253, since it delays the destruction of the ResourcePool until the end of the program. --- src/modules/opengl/filter_movit_convert.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/opengl/filter_movit_convert.cpp b/src/modules/opengl/filter_movit_convert.cpp index 40229ab5..1c95bfef 100644 --- a/src/modules/opengl/filter_movit_convert.cpp +++ b/src/modules/opengl/filter_movit_convert.cpp @@ -498,7 +498,7 @@ static int convert_image( mlt_frame frame, uint8_t **image, mlt_image_format *fo int h = producer.get_int( "movit.convert.height" ); mlt_image_format f = (mlt_image_format) producer.get_int( "movit.convert.format" ); if ( !chain || !input || width != w || height != h || *format != f ) { - chain = new EffectChain( width, height ); + chain = new EffectChain( width, height, GlslManager::get_instance()->get_resource_pool() ); input = create_input( properties, *format, width, height, width, height ); chain->add_input( input->get_input() ); chain->add_effect( new Mlt::VerticalFlip() ); -- 2.39.2