added RCU handling of Session route list, and major use of shared_ptr<T> everywhere...
[ardour.git] / libs / ardour / audiofilesource.cc
index 034b61860ac0a057ce1d56ca99b24a4bd041943d..29736a8677698a0495e074d737039cfb18fa82d2 100644 (file)
@@ -213,6 +213,10 @@ AudioFileSource::create (const string& idstr, Flag flags)
 {
        AudioFileSource* es = 0;
 
+       if (flags & Destructive) {
+               return new DestructiveFileSource (idstr, flags);
+       }
+
        try {
                es = new CoreAudioSource (idstr, flags);
        }