if ( mlt_properties_get_data( properties, "test_card_producer", NULL ) == NULL )
{
// Create a test card producer
- // TODO: do we want to use fezzik here?
- mlt_producer producer = mlt_factory_producer( "fezzik", test_card );
+ mlt_producer producer = mlt_factory_producer( NULL, test_card );
// Do we have a producer
if ( producer != NULL )
// Create the read ahead
pthread_create( &this->ahead_thread, &thread_attributes, consumer_read_ahead_thread, this );
-
}
static void consumer_read_ahead_stop( mlt_consumer this )
if ( test_frame != NULL )
{
mlt_properties test_properties = mlt_frame_properties( test_frame );
- mlt_properties_pass( properties, test_properties, "" );
+ //mlt_properties_pass( test_properties, properties, "" );
+ mlt_properties_set( test_properties, "rescale.interp", "nearest" );
+ //mlt_properties_set( test_properties, "aspect_ratio", "1" );
+ //mlt_properties_set( test_properties, "consumer_aspect_ratio", "1" );
mlt_frame_get_image( test_frame, buffer, format, width, height, writable );
mlt_properties_set_data( properties, "test_card_frame", test_frame, 0, ( mlt_destructor )mlt_frame_close, NULL );
mlt_properties_set_data( properties, "image", *buffer, *width * *height * 2, NULL, NULL );
mlt_properties_set_int( properties, "width", *width );
mlt_properties_set_int( properties, "height", *height );
- mlt_properties_set( properties, "rescale.interps", "none" );
+ //mlt_properties_pass( properties, test_properties, "" );
+ mlt_properties_set( properties, "rescale.interp", "none" );
mlt_properties_set( properties, "scale", "off" );
}
else
property_list *list = this->private;
int i = 0;
for ( i = 0; i < list->count; i ++ )
- fprintf( output, "%s=%s\n", list->name[ i ], mlt_properties_get( this, list->name[ i ] ) );
+ if ( mlt_properties_get( this, list->name[ i ] ) != NULL )
+ fprintf( output, "%s=%s\n", list->name[ i ], mlt_properties_get( this, list->name[ i ] ) );
}
/** Close the list.