mlt_properties_set_position( properties, "in", 0 );
mlt_properties_set_position( properties, "out", 0 );
mlt_properties_set_int( properties, "track", 0 );
- mlt_properties_set( properties, "resource", "<filter>" );
return 0;
}
return 1;
}
+/** Create a new filter.
+*/
+
+mlt_filter mlt_filter_new( )
+{
+ mlt_filter this = calloc( 1, sizeof( struct mlt_filter_s ) );
+ if ( this != NULL )
+ mlt_filter_init( this, NULL );
+ return this;
+}
+
/** Get the service associated to this filter
*/
if ( ret == 0 )
{
mlt_position position = mlt_frame_get_position( *frame );
- if ( position >= in && ( out == 0 || position < out ) )
+ if ( position >= in && ( out == 0 || position <= out ) )
*frame = mlt_filter_process( this, *frame );
return 0;
}
else
mlt_service_close( &this->parent );
}
-