+ DESTDIR patch from Anthony Green (green at redhat dot com) - many thanks :-)
[melted] / src / framework / mlt_filter.c
index 9472cc3..e97d6e0 100644 (file)
@@ -147,7 +147,8 @@ mlt_position mlt_filter_get_out( mlt_filter this )
 
 mlt_frame mlt_filter_process( mlt_filter this, mlt_frame frame )
 {
-       if ( this->process == NULL )
+       int disable = mlt_properties_get_int( MLT_FILTER_PROPERTIES( this ), "disable" );
+       if ( disable || this->process == NULL )
                return frame;
        else
                return this->process( this, frame );
@@ -169,7 +170,7 @@ static int filter_get_frame( mlt_service service, mlt_frame_ptr frame, int index
        mlt_service producer = mlt_service_producer( &this->parent );
 
        // If the frame request is for this filters track, we need to process it
-       if ( index == track )
+       if ( index == track || track == -1 )
        {
                int ret = mlt_service_get_frame( producer, frame, index );
                if ( ret == 0 )