summaryrefslogtreecommitdiff
path: root/libs/ardour/source.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/source.cc')
-rw-r--r--libs/ardour/source.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/ardour/source.cc b/libs/ardour/source.cc
index eebc64d463..e5aba19d2c 100644
--- a/libs/ardour/source.cc
+++ b/libs/ardour/source.cc
@@ -117,3 +117,11 @@ Source::release ()
if (_use_cnt) --_use_cnt;
}
+void
+Source::update_length (jack_nframes_t pos, jack_nframes_t cnt)
+{
+ if (pos + cnt > _length) {
+ _length = pos+cnt;
+ }
+}
+