]> git.sesse.net Git - mlt/blobdiff - src/framework/mlt_consumer.c
Minor corrections and more affine experiments
[mlt] / src / framework / mlt_consumer.c
index 1819a0ff7a0e586867febafc1f2bcaf4f7d03472..f1fbdd549f3b27c58a3a92d37a72b037c4c6ec0c 100644 (file)
@@ -171,9 +171,9 @@ int mlt_consumer_start( mlt_consumer this )
                        if ( producer != NULL )
                        {
                                // Test card should loop I guess...
-                               mlt_properties_set( MLT_PRODUCER_PROPERTIES( producer ), "eof", "pause" );
-                               mlt_producer_set_speed( producer, 0 );
-                               mlt_producer_set_in_and_out( producer, 0, 0 );
+                               mlt_properties_set( MLT_PRODUCER_PROPERTIES( producer ), "eof", "loop" );
+                               //mlt_producer_set_speed( producer, 0 );
+                               //mlt_producer_set_in_and_out( producer, 0, 0 );
 
                                // Set the test card on the consumer
                                mlt_properties_set_data( properties, "test_card_producer", producer, 0, ( mlt_destructor )mlt_producer_close, NULL );
@@ -276,6 +276,10 @@ mlt_frame mlt_consumer_get_frame( mlt_consumer this )
        {
                mlt_service_get_frame( service, &frame, 0 );
        }
+       else
+       {
+               frame = mlt_frame_init( );
+       }
 
        if ( frame != NULL )
        {