mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-12 19:00:02 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user