Fix automation-write when locating
authorRobin Gareus <robin@gareus.org>
Wed, 13 Nov 2019 15:57:28 +0000 (16:57 +0100)
committerRobin Gareus <robin@gareus.org>
Wed, 13 Nov 2019 15:57:28 +0000 (16:57 +0100)
When locating while writing automation, begin a new write-pass,
and add a guard point at the locate target position.

NB set_in_write_pass takes 3 arguments: (write_enable, add_point, when)
the last two default to false, 0.

libs/ardour/automation_watch.cc

index 6d1bdd5143723fdc2b959af373c8114a95d376a4..f3e2ae5f816d53127ddc8c6846aa4c7eb088cd09 100644 (file)
@@ -175,7 +175,7 @@ AutomationWatch::timer ()
                                                                                (*aw)->alist()->automation_write()));
                                (*aw)->list()->set_in_write_pass (false);
                                if ( (*aw)->alist()->automation_write() ) {
-                                       (*aw)->list()->set_in_write_pass (true, time);
+                                       (*aw)->list()->set_in_write_pass (true, true, time);
                                }
                        }
                }