X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fresample%2Ffilter_resample.c;h=6838465275902eae6f158b4e7f8f317f8f66b49f;hb=027dc39ab6e64c5b50901996c4977dc45cadb1c3;hp=264d083bf56f02ab84102c43f81c1a9d7345d474;hpb=4ecd7f54c6f0d4b0119070b8f436bab607bf3773;p=melted diff --git a/src/modules/resample/filter_resample.c b/src/modules/resample/filter_resample.c index 264d083..6838465 100644 --- a/src/modules/resample/filter_resample.c +++ b/src/modules/resample/filter_resample.c @@ -18,8 +18,7 @@ * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "filter_resample.h" - +#include #include #include @@ -161,7 +160,7 @@ static int resample_get_audio( mlt_frame frame, int16_t **buffer, mlt_audio_form static mlt_frame filter_process( mlt_filter this, mlt_frame frame ) { - //if ( mlt_frame_is_test_audio( frame ) != 0 ) + if ( mlt_frame_is_test_audio( frame ) == 0 ) { mlt_frame_push_audio( frame, this ); mlt_frame_push_audio( frame, resample_get_audio ); @@ -173,7 +172,7 @@ static mlt_frame filter_process( mlt_filter this, mlt_frame frame ) /** Constructor for the filter. */ -mlt_filter filter_resample_init( char *arg ) +mlt_filter filter_resample_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg ) { mlt_filter this = mlt_filter_new( ); if ( this != NULL )