X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_filter.c;h=e97d6e075147ba13507e180ac622c1a4b87b5465;hb=413ab111e30a0ccc40d207fa3f7b87b7e8f29313;hp=9472cc3477a7eecdb5533497ad8ef73774bb5060;hpb=f00476101550ec7d8e863f6516aa83bc1b524570;p=melted diff --git a/src/framework/mlt_filter.c b/src/framework/mlt_filter.c index 9472cc3..e97d6e0 100644 --- a/src/framework/mlt_filter.c +++ b/src/framework/mlt_filter.c @@ -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 )