/*
* CINELERRA
* Copyright (C) 1997-2014 Adam Williams <broadcast at earthling dot net>
+ * Copyright (C) 2003-2016 Cinelerra CV contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
delete convert_render; convert_render = 0;
delete render; render = 0;
delete mixers_align; mixers_align = 0;
+#ifdef HAVE_COMMERCIALS
commit_commercial();
if( commercials && !commercials->remove_user() ) commercials = 0;
+#endif
close_mixers();
if( speed_edl ) { speed_edl->remove_user(); speed_edl = 0; }
// Save defaults for open plugins
}
result = 0;
break; }
+// File is a list and size of listed files don't match
+ case FILE_SIZE_DONT_MATCH: {
+ eprintf(_("File sizes don't match"));
+ sprintf(string, _("File sizes don't match"));
+ gui->show_message(string, theme->message_error);
+ gui->update_default_message();
+ break; }
case FILE_NOT_FOUND: {
eprintf(_("Failed to open %s"), new_asset->path);
int channels = 0;
for( uint64_t mask=channel_mask; mask!=0; mask>>=1 ) channels += mask & 1;
if( channels < 1 ) channels = 1;
- if( channels > 6 ) channels = 6;
+ if( channels > MAXCHANNELS ) channels = MAXCHANNELS;
session->audio_tracks = session->audio_channels = channels;
int *achannel_positions = preferences->channel_positions[session->audio_channels-1];