search fixes, preset fixes, ladspa icon logging, igor pref theme, drag btn rollover
[goodguy/history.git] / cinelerra-5.1 / cinelerra / atrack.C
index 1ef123dae4fdd014aa0be421ca415068b56bb9fe..ed9df7b90105614a2f726cea39bab7a66a8c61bb 100644 (file)
@@ -127,7 +127,7 @@ int ATrack::load_defaults(BC_Hash *defaults)
 
 void ATrack::set_default_title()
 {
-       Track *current = ListItem<Track>::owner->first;
+       Track *current = ListItem<Track>::list->first;
        int i;
        for(i = 0; current; current = NEXT)
        {
@@ -177,3 +177,15 @@ int ATrack::paste_derived(int64_t start, int64_t end, int64_t total_length, File
        return 0;
 }
 
+void ATrack::deglitch(double position, 
+       int edit_labels, int edit_plugins, int edit_autos)
+{
+       int64_t samples = to_units(position, 0);
+       edits->deglitch(samples);
+       if( edit_plugins ) {
+               for(int i = 0; i < plugin_set.size(); i++) {
+                       plugin_set.get(i)->deglitch(samples);
+               }
+       }
+}
+