X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_service.c;h=46197804ae0bc4f355740ff2d5f99d3f5f1409e4;hb=e6c03148e1dc3b0e363c9f304b3ed93fbc1a91a9;hp=a5e6df93b2b57e77a4f614463d8af5c8e50f141f;hpb=1bd08df850a0e7e4cf664a8d8fdf3ca89ac108b4;p=melted diff --git a/src/framework/mlt_service.c b/src/framework/mlt_service.c index a5e6df9..4619780 100644 --- a/src/framework/mlt_service.c +++ b/src/framework/mlt_service.c @@ -160,6 +160,11 @@ int mlt_service_connect_producer( mlt_service this, mlt_service producer, int in // Get the service base mlt_service_base *base = this->local; + // Special case 'track' index - only works for last filter(s) in a particular chain + // but allows a filter to apply to the output frame regardless of which track it comes from + if ( index == -1 ) + index = 0; + // Check if the producer is already registered with this service for ( i = 0; i < base->count; i ++ ) if ( base->in[ i ] == producer )