From: Steinar H. Gunderson Date: Thu, 3 Apr 2014 20:21:38 +0000 (+0200) Subject: Use the shared ResourcePool also for ad-hoc EffectChains. X-Git-Url: https://git.sesse.net/?p=mlt;a=commitdiff_plain;h=7e8f67faedf3a0ccb299fd920cddce39694badd4 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. --- 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() );