if ( group != NULL )
properties = group;
}
- else if ( !strcmp( argv[ i ], "-attach" ) || !strcmp( argv[ i ], "-chain" ) )
+ else if ( !strcmp( argv[ i ], "-attach" ) || !strcmp( argv[ i ], "-attach-cut" ) )
{
int type = !strcmp( argv[ i ], "-attach" ) ? 0 : 1;
mlt_filter filter = create_attach( field, argv[ ++ i ], track );
producer = info.cut;
}
+ if ( type == 1 )
+ {
+ mlt_playlist_clip_info info;
+ mlt_playlist_get_clip_info( playlist, &info, mlt_playlist_count( playlist ) - 1 );
+ producer = info.cut;
+ }
+
if ( filter != NULL && mlt_playlist_count( playlist ) > 0 )
{
if ( type == 0 )