X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fresample%2Ffilter_resample.c;h=b8da7605d04672ffa1e639bb2e8f140a6c503bbd;hb=bdbe7d802961afa00c233b3cf30e32f0e1c3740a;hp=f40384c1b97dcf9345fa8ae3de8263c56cc25945;hpb=0b288164cbeb9a3c98107d439d86844be13ba910;p=melted diff --git a/src/modules/resample/filter_resample.c b/src/modules/resample/filter_resample.c index f40384c..b8da760 100644 --- a/src/modules/resample/filter_resample.c +++ b/src/modules/resample/filter_resample.c @@ -134,8 +134,8 @@ static mlt_frame filter_process( mlt_filter this, mlt_frame frame ) mlt_filter filter_resample_init( char *arg ) { - mlt_filter this = calloc( sizeof( struct mlt_filter_s ), 1 ); - if ( this != NULL && mlt_filter_init( this, NULL ) == 0 ) + mlt_filter this = mlt_filter_new( ); + if ( this != NULL ) { int error; SRC_STATE *state = src_new( RESAMPLE_TYPE, 2 /* channels */, &error );