fix crasher caused by regions not being deleted on session unload; fix up srctar scons target for new sigc++

git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3529 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2008-07-09 15:46:17 +00:00
parent a9ac0d4dab
commit d8fe491489
3 changed files with 11 additions and 1 deletions

View file

@ -1481,6 +1481,15 @@ AudioRegion::speed_mismatch (float sr) const
void
AudioRegion::source_offset_changed ()
{
/* XXX this fixes a crash that should not occur. It does occur
becauses regions are not being deleted when a session
is unloaded. That bug must be fixed.
*/
if (sources.empty()) {
return;
}
boost::shared_ptr<AudioFileSource> afs = boost::dynamic_pointer_cast<AudioFileSource>(sources.front());
if (afs && afs->destructive()) {

View file

@ -25,6 +25,7 @@ env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ar
env.Alias('tarball', env.Distribute (env['DISTTREE'],
[ 'NEWS', 'README', 'AUTHORS', 'ChangeLog',
'configure', 'configure.ac', 'Makefile.am', 'SConscript',
'config.sub', 'config.guess',
'sigc++/Makefile.in',
'sigc++config.h',
'sigc++config.h.in',

View file

@ -1,4 +1,4 @@
#ifndef __ardour_svn_revision_h__
#define __ardour_svn_revision_h__
static const char* ardour_svn_revision = "3343";
static const char* ardour_svn_revision = "3527";
#endif