Move a few declarations to first use.
[ardour.git] / libs / ardour / audio_diskstream.cc
index 9a227bf7a5fc7e33e88e2e8c328a1d31f2d9c30b..037ff34eb5ddd28f9dab537e4a920c3c3c194e6e 100644 (file)
@@ -1511,8 +1511,8 @@ AudioDiskstream::transport_stopped_wallclock (struct tm& when, time_t twhen, boo
 
                        i_am_the_modifier++;
 
-                       region->set_pending_layer (max_layer);
                        _playlist->add_region (region, (*ci)->start, 1, non_layered());
+                       _playlist->set_layer (region, DBL_MAX);
                        i_am_the_modifier--;
 
                        buffer_position += (*ci)->frames;