I have the following example: ```c #include <stdio.h> #include <unistd.h> #include <mlt-7/framework/mlt.h>
int main( int argc, char *argv[] ) { // Initialise the factory if ( mlt_factory_init( NULL ) != 0 ) { // Create the default consumer mlt_consumer hello = mlt_factory_consumer( NULL, "sdl2", NULL ); // Create via the default producer mlt_producer world = mlt_factory_producer( NULL, NULL, "color:red" ); // Connect the producer to the consumer mlt_consumer_connect( hello, mlt_producer_service( world ) ); // Start the consumer mlt_consumer_start( hello ); // Wait for the consumer to terminate while( !mlt_consumer_is_stopped( hello ) ) sleep( 1 ); // Close the consumer mlt_consumer_close( hello ); // Close the producer mlt_producer_close( world ); // Close the factory mlt_factory_close( ); } else { // Report an error during initialisation fprintf( stderr, "Unable to locate factory modules\n" ); } // End of program return 0; } ``` It compiles fine with: ```bash gcc ex.c -o ex -lX11 -lmlt-7 ``` But when I execute it: 1. A black window appears for a couple of seconds 2. The window closes and a core is generated: ``` Segment violated ('core' generated) ``` I am using mlt-7.2 under ArchLinux. Any help would be appreciated. Note that I am not a pro-developer.
_______________________________________________ Mlt-devel mailing list Mlt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mlt-devel