X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fsox%2Ffilter_sox.c;h=66cc54d3c50e2817b49ba8190fce1fb75ffc588d;hb=4112170ce8053261b9c67f58df87c2a3573b6602;hp=42bf8128845ff8cd4a3c5962ecdbfd64f31c7d1c;hpb=36493085be1aa428d2b207ebad20d3914bdcece8;p=melted diff --git a/src/modules/sox/filter_sox.c b/src/modules/sox/filter_sox.c index 42bf812..66cc54d 100644 --- a/src/modules/sox/filter_sox.c +++ b/src/modules/sox/filter_sox.c @@ -106,7 +106,9 @@ static int create_effect( mlt_filter this, char *value, int count, int channel, #ifdef SOX14 //fprintf(stderr, "%s: effect %s count %d\n", __FUNCTION__, tokeniser->tokens[0], tokeniser->count ); #if (ST_LIB_VERSION_CODE >= ST_LIB_VERSION(14,1,0)) - eff_t eff = sox_create_effect( sox_find_effect( tokeniser->tokens[0] ) ); + sox_effect_handler_t const *eff_handle = sox_find_effect( tokeniser->tokens[0] ); + if (eff_handle == NULL ) return error; + eff_t eff = sox_create_effect( eff_handle ); effect_destructor = ( mlt_destructor ) delete_effect; sox_encodinginfo_t *enc = calloc( 1, sizeof( sox_encodinginfo_t ) ); enc->encoding = SOX_ENCODING_SIGN2;