summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_ui.cc
diff options
context:
space:
mode:
authorValeriy Kamyshniy <vkamyshniy@wavesglobal.com>2015-04-02 21:51:23 +0300
committerPaul Davis <paul@linuxaudiosystems.com>2015-04-02 16:32:41 -0400
commit21193c6fcab5160f4514b8f071e6cd288add033c (patch)
tree669c179074fd7e222be22f06c958e99f74360bd3 /gtk2_ardour/ardour_ui.cc
parent5001a680fc23469698c914cdd85372f19f81f25c (diff)
[Summary] Adding option to avoid sorting the routs in Session::foreach method. Now ARDOUR_UI::every_second do not spend time for unnecessary sorting when calling update_disk_space().
[Reviewed] Paul Davis [Required review] YPozdnyakov, GZharun
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r--gtk2_ardour/ardour_ui.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc
index 4d38d71c85..a81d817442 100644
--- a/gtk2_ardour/ardour_ui.cc
+++ b/gtk2_ardour/ardour_ui.cc
@@ -1420,7 +1420,7 @@ ARDOUR_UI::update_disk_space()
snprintf (buf, sizeof (buf), "%s", _("Disk: <span foreground=\"green\">24hrs+</span>"));
} else {
rec_enabled_streams = 0;
- _session->foreach_route (this, &ARDOUR_UI::count_recenabled_streams);
+ _session->foreach_route (this, &ARDOUR_UI::count_recenabled_streams, false);
framecnt_t frames = opt_frames.get_value_or (0);