issue #111, fix offline recording, allow offline recording while recording from playing sample or stream, added new tag type 'clone' which lets you clone any input stream, added clone callback to sample copy button, added offline recording widgets to sample bank, added new VIMS 252

This commit is contained in:
c0ntrol
2016-05-19 22:53:50 +02:00
parent 4af03c8670
commit fdd3a4bd4c
11 changed files with 463 additions and 123 deletions

View File

@@ -2077,18 +2077,49 @@ void on_button_browse_clicked(GtkWidget *widget, gpointer user_data)
free(test);
}
void on_button_offline_start_clicked(GtkWidget *widget, gpointer user_data)
{
int stream_id = 0;
if( info->selection_slot ) {
stream_id = info->selection_slot->sample_type != 0 ? info->selection_slot->sample_id : 0;
}
else if (info->selected_slot ) {
stream_id = info->selected_slot->sample_type != 0 ? info->selected_slot->sample_id : 0;
}
if( stream_id > 0 ) {
multi_vims( VIMS_STREAM_OFFLINE_REC_START, "%d %d %d", stream_id, get_nums("spin_offlineduration1" ), is_button_toggled("button_offline_autoplay1"));
}
}
void on_button_offline_stop_clicked(GtkWidget *widget, gpointer user_data)
{
single_vims( VIMS_STREAM_OFFLINE_REC_STOP );
}
void on_button_clipcopy_clicked(GtkWidget *widget, gpointer user_data)
{
if(info->selection_slot )
{
multi_vims( VIMS_SAMPLE_COPY, "%d", info->selection_slot->sample_id );
gveejay_new_slot(MODE_SAMPLE);
if( info->selection_slot->sample_type != 0 ) {
multi_vims( VIMS_STREAM_NEW_CLONE, "%d", info->selection_slot->sample_id );
gveejay_new_slot(MODE_STREAM);
}
else {
multi_vims( VIMS_SAMPLE_COPY, "%d", info->selection_slot->sample_id );
gveejay_new_slot(MODE_SAMPLE);
}
}
else if (info->selected_slot )
{
multi_vims( VIMS_SAMPLE_COPY, "%d", info->selected_slot->sample_id );
gveejay_new_slot(MODE_SAMPLE);
}
if( info->selected_slot->sample_type != 0 ) {
multi_vims( VIMS_STREAM_NEW_CLONE, "%d", info->selected_slot->sample_id );
gveejay_new_slot(MODE_STREAM);
}
else {
multi_vims( VIMS_SAMPLE_COPY, "%d", info->selected_slot->sample_id );
gveejay_new_slot(MODE_SAMPLE);
}
}
}
void on_check_priout_fullscreen_clicked(