]> git.sesse.net Git - mlt/commitdiff
Fix sox effect parameters.
authorDan Dennedy <dan@dennedy.org>
Fri, 3 Sep 2010 03:54:33 +0000 (20:54 -0700)
committerDan Dennedy <dan@dennedy.org>
Fri, 3 Sep 2010 03:54:33 +0000 (20:54 -0700)
src/modules/sox/filter_sox.c

index 861c0d2cde9c5dd31ee0f34212c81a88804add8e..f4bb5593819994a91dc5a2a5a6b0f22e2d3576fa 100644 (file)
@@ -129,7 +129,11 @@ static int create_effect( mlt_filter this, char *value, int count, int channel,
        {
                // Supply the effect parameters
 #ifdef SOX14
+#if (ST_LIB_VERSION_CODE >= ST_LIB_VERSION(14,2,0))
+               if ( sox_effect_options( eff, opt_count, &tokeniser->tokens[ tokeniser->count > 1 ? 1 : 0  ] ) == ST_SUCCESS )
+#else
                if ( ( * eff->handler.getopts )( eff, opt_count, &tokeniser->tokens[ tokeniser->count > 1 ? 1 : 0  ] ) == ST_SUCCESS )
+#endif
 #else
                if ( ( * eff->h->getopts )( eff, opt_count, &tokeniser->tokens[ tokeniser->count - opt_count ] ) == ST_SUCCESS )
 #endif