From f4401c59284258c6aa56707da64e3da32756329f Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 23 Jun 2010 20:14:07 +0000 Subject: midway snapshot of work done on managing Region & Source lifetimes correctly. may fix missing MIDI file bug ; save empty playlists because they may be referred to by the history file ; undo commands auto-delete when objects they refer to die (currently not commands built from XML deserialization); Sources now know how many regions are using them for something, meaning that we know if we can delete the files holding any data for the source git-svn-id: svn://localhost/ardour2/branches/3.0@7291 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/source.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libs/ardour/source.cc') diff --git a/libs/ardour/source.cc b/libs/ardour/source.cc index 5ec9631e40..55ce9f8bef 100644 --- a/libs/ardour/source.cc +++ b/libs/ardour/source.cc @@ -52,6 +52,7 @@ Source::Source (Session& s, DataType type, const string& name, Flag flags) , _type(type) , _flags(flags) , _timeline_position(0) + , _use_count (0) { _analysed = false; _timestamp = 0; @@ -63,6 +64,7 @@ Source::Source (Session& s, const XMLNode& node) , _type(DataType::AUDIO) , _flags (Flag (Writable|CanRename)) , _timeline_position(0) + , _use_count (0) { _timestamp = 0; _analysed = false; -- cgit v1.2.3