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.
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 ) {
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() );
input = create_input( properties, *format, width, height, width, height );
chain->add_input( input->get_input() );
chain->add_effect( new Mlt::VerticalFlip() );