diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-03-02 17:05:16 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-03-02 17:05:16 +0000 |
commit | 5e431d1d5806e8f617b9bfa10c5c8766e0b1a4ce (patch) | |
tree | 2561e389524a2348eb2c0f8f9ed6462c3220a593 /libs/ardour/audio_diskstream.cc | |
parent | 488d54a341b2d4f6bb23f8801d293356f664a96a (diff) |
remove entire "stub" file concept; open new audio and MIDI files on demand (at first write); could be a few gotchas with some corner case scenarios, but apparently works OK
git-svn-id: svn://localhost/ardour2/branches/3.0@9038 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/audio_diskstream.cc')
-rw-r--r-- | libs/ardour/audio_diskstream.cc | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/libs/ardour/audio_diskstream.cc b/libs/ardour/audio_diskstream.cc index 2c0dcb3e97..f4b27f6e6a 100644 --- a/libs/ardour/audio_diskstream.cc +++ b/libs/ardour/audio_diskstream.cc @@ -1425,9 +1425,6 @@ AudioDiskstream::transport_stopped_wallclock (struct tm& when, time_t twhen, boo if (s) { srcs.push_back (s); - if (s->unstubify ()) { - error << string_compose (_("Could not move capture file from %1"), s->path()) << endmsg; - } s->update_header (capture_info.front()->start, when, twhen); s->set_captured_for (_name.val()); s->mark_immutable (); @@ -1903,13 +1900,8 @@ AudioDiskstream::use_new_write_source (uint32_t n) ChannelInfo* chan = (*c)[n]; try { - /* file starts off as a stub file, it will be converted - when we're done with a capture pass. - */ - if ((chan->write_source = _session.create_audio_source_for_session (n_channels().n_audio(), - name(), n, destructive(), - true)) == 0) { + name(), n, destructive())) == 0) { throw failed_constructor(); } } |