All plugin activate() method when required for copy & paste operations. Fixes segfau...
[ardour.git] / libs / ardour / audiosource.cc
index 883bc0b41b25e880479f7c4c4ebda444531ed20f..f7d6088aec1e3e62ec6f77083c68331c37a2c867 100644 (file)
@@ -276,6 +276,8 @@ nframes_t
 AudioSource::write (Sample *dst, nframes_t cnt)
 {
        Glib::Mutex::Lock lm (_lock);
+       /* any write makes the fill not removable */
+       _flags = Flag (_flags & ~Removable);
        return write_unlocked (dst, cnt);
 }