summaryrefslogtreecommitdiff
path: root/libs/ardour/analyser.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-02-20 00:30:42 +0000
committerDavid Robillard <d@drobilla.net>2009-02-20 00:30:42 +0000
commitc9582da23371bfd40f3087f5a9112d081ef012da (patch)
treed039fc76d262918d0335941ad5933bf7ccebfd05 /libs/ardour/analyser.cc
parentbed0d89337b0775e669439ef4e0759feb7ddc74e (diff)
Make source length a dynamic thing.
Update MIDI region length (actually and visually) when position changes. git-svn-id: svn://localhost/ardour2/branches/3.0@4644 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/analyser.cc')
-rw-r--r--libs/ardour/analyser.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/ardour/analyser.cc b/libs/ardour/analyser.cc
index 28eeeb190c..6d2392eb20 100644
--- a/libs/ardour/analyser.cc
+++ b/libs/ardour/analyser.cc
@@ -95,7 +95,7 @@ Analyser::work ()
boost::shared_ptr<AudioFileSource> afs = boost::dynamic_pointer_cast<AudioFileSource> (src);
- if (afs && afs->length()) {
+ if (afs && afs->length(afs->timeline_position())) {
analyse_audio_file_source (afs);
}
}
@@ -116,4 +116,3 @@ Analyser::analyse_audio_file_source (boost::shared_ptr<AudioFileSource> src)
}
-