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

@@ -6537,17 +6537,18 @@ static void update_globalinfo(int *history, int pm, int last_pm)
if( info->status_tokens[SEQ_CUR] != history[SEQ_CUR] )
{
int in = info->status_tokens[SEQ_CUR];
if( in )
if( in < MAX_SEQUENCES )
{
set_toggle_button( "seqactive" , 1 );
} else
indicate_sequence( FALSE, info->sequencer_view->gui_slot[ info->sequence_playing ] );
info->sequence_playing = in;
indicate_sequence( TRUE, info->sequencer_view->gui_slot[ info->sequence_playing ] );
}
else
{
indicate_sequence( FALSE, info->sequencer_view->gui_slot[ info->sequence_playing ] );
set_toggle_button( "seqactive" , 0 );
}
if(info->sequence_playing >= 0)
indicate_sequence( FALSE, info->sequencer_view->gui_slot[ info->sequence_playing ] );
info->sequence_playing = in;
indicate_sequence( TRUE, info->sequencer_view->gui_slot[ info->sequence_playing ] );
}
total_frames_ = (pm == MODE_STREAM ? info->status_tokens[SAMPLE_MARKER_END] : info->status_tokens[TOTAL_FRAMES] );