Browse Source

Timeline: Fix error in reference counting of newly recorded clips.

tags/non-daw-v1.2.0
Jonathan Moore Liles 11 years ago
parent
commit
13c3ca8eb8
2 changed files with 1 additions and 3 deletions
  1. +0
    -2
      timeline/src/Engine/Audio_File.C
  2. +1
    -1
      timeline/src/Engine/Audio_File.H

+ 0
- 2
timeline/src/Engine/Audio_File.C View File

@@ -147,8 +147,6 @@ done:


_open_files[ std::string( filename ) ] = a; _open_files[ std::string( filename ) ] = a;


a->_refs = 1;

return a; return a;
} }




+ 1
- 1
timeline/src/Engine/Audio_File.H View File

@@ -72,7 +72,7 @@ public:
_path =_filename = NULL; _path =_filename = NULL;
_samplerate = 0; _samplerate = 0;
_length = _channels = 0; _length = _channels = 0;
_refs = 0;
_refs = 1;
} }


virtual ~Audio_File ( ); virtual ~Audio_File ( );


Loading…
Cancel
Save