From fcabd5d8ee172e9d27423864448902ad99634ac5 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 8 Jul 2014 00:53:06 -0400 Subject: initial implementation of "bring all media into session folder". Incomplete but basically functional for audio files --- libs/ardour/sndfilesource.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libs/ardour/sndfilesource.cc') diff --git a/libs/ardour/sndfilesource.cc b/libs/ardour/sndfilesource.cc index af25b3e76f..58fbab233b 100644 --- a/libs/ardour/sndfilesource.cc +++ b/libs/ardour/sndfilesource.cc @@ -1016,3 +1016,12 @@ SndFileSource::set_path (const string& p) _descriptor->set_path (_path); } } + +void +SndFileSource::release_descriptor () +{ + if (_descriptor) { + _descriptor->release (); + _descriptor = 0; + } +} -- cgit v1.2.3