[Mlt-devel] mlt/src/framework mlt_filter.c,1.17,1.18 mlt_service.c,1.28,1.29
Brought to you by:
ddennedy,
lilo_booter
From: Charles Y. <lil...@us...> - 2005-07-20 06:32:19
|
Update of /cvsroot/mlt/mlt/src/framework In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3455 Modified Files: mlt_filter.c mlt_service.c Log Message: mlt_filter.c mlt_service.c + Filter disable property Index: mlt_filter.c =================================================================== RCS file: /cvsroot/mlt/mlt/src/framework/mlt_filter.c,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- mlt_filter.c 31 Jan 2005 14:16:03 -0000 1.17 +++ mlt_filter.c 20 Jul 2005 06:32:10 -0000 1.18 @@ -147,7 +147,8 @@ 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 ); Index: mlt_service.c =================================================================== RCS file: /cvsroot/mlt/mlt/src/framework/mlt_service.c,v retrieving revision 1.28 retrieving revision 1.29 diff -u -d -r1.28 -r1.29 --- mlt_service.c 16 Jul 2005 13:36:23 -0000 1.28 +++ mlt_service.c 20 Jul 2005 06:32:10 -0000 1.29 @@ -338,7 +338,8 @@ { mlt_position in = mlt_filter_get_in( base->filters[ i ] ); mlt_position out = mlt_filter_get_out( base->filters[ i ] ); - if ( ( in == 0 && out == 0 ) || ( position >= in && ( position <= out || out == 0 ) ) ) + int disable = mlt_properties_get_int( MLT_FILTER_PROPERTIES( base->filters[ i ] ), "disable" ); + if ( !disable && ( in == 0 && out == 0 ) || ( position >= in && ( position <= out || out == 0 ) ) ) { mlt_properties_set_position( frame_properties, "in", in == 0 ? this_in : in ); mlt_properties_set_position( frame_properties, "out", out == 0 ? this_out : out ); |