With Qt 4 version of qt module, if -consumer qglsl was specified on melt
command line, then the xml would not load without specifying "xml-nogl"
as the service for the resource. This prevents the need to invoke that.
// may exist when trying to load glsl. or movit. services.
// The "if requested" part can come from query string qglsl=1 or when
// a service beginning with glsl. or movit. appears in the XML.
// may exist when trying to load glsl. or movit. services.
// The "if requested" part can come from query string qglsl=1 or when
// a service beginning with glsl. or movit. appears in the XML.
- if ( mlt_properties_get_int( context->params, "qglsl" ) && strcmp( id, "xml-nogl" ) )
+ if ( mlt_properties_get_int( context->params, "qglsl" ) && strcmp( id, "xml-nogl" )
+ // Only if glslManager does not yet exist.
+ && !mlt_properties_get_data( mlt_global_properties(), "glslManager", NULL ) )
context->qglsl = mlt_factory_consumer( profile, "qglsl", NULL );
// Setup SAX callbacks for second pass
context->qglsl = mlt_factory_consumer( profile, "qglsl", NULL );
// Setup SAX callbacks for second pass