issue #111, fix sequence slot indicator in reloaded, fix crash on deleting tag when it was mixing with a sample (and vice versa), fix leak in yuvconv, fix leak in plugin description cleanup, change status behaviour for current sequence slot; MAX_SEQUENCES indicates sequencer is turned off, any other value is a valid sequence index.

This commit is contained in:
c0ntrol
2016-05-18 19:48:42 +02:00
parent 05cbbc1fbe
commit 23fec4a67f
8 changed files with 75 additions and 16 deletions

View File

@@ -959,9 +959,11 @@ int sample_verify_delete( int sample_id, int sample_type )
{
int i,j;
int n = sample_highest();
for( i = 1; i <= n; i ++ )
{
sample_info *s = sample_get(i);
if(s)
{
for( j = 0 ; j < SAMPLE_MAX_EFFECTS; j ++ )
@@ -975,6 +977,26 @@ int sample_verify_delete( int sample_id, int sample_type )
}
}
}
n = vj_tag_highest();
for( i = 1; i <= n; i ++ )
{
vj_tag *s = vj_tag_get(i);
if(s)
{
for( j = 0 ; j < SAMPLE_MAX_EFFECTS; j ++ )
{
if(s->effect_chain[j]->channel == sample_id &&
s->effect_chain[j]->source_type == sample_type )
{
s->effect_chain[j]->channel = i;
s->effect_chain[j]->source_type = 1;
}
}
}
}
return 1;
}