summaryrefslogtreecommitdiff
path: root/libs/ardour/file_source.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/file_source.cc')
-rw-r--r--libs/ardour/file_source.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/ardour/file_source.cc b/libs/ardour/file_source.cc
index ed9c80338a..649fc6156b 100644
--- a/libs/ardour/file_source.cc
+++ b/libs/ardour/file_source.cc
@@ -77,13 +77,12 @@ FileSource::removable () const
{
return (_flags & Removable)
&& ( (_flags & RemoveAtDestroy)
- || ((_flags & RemovableIfEmpty) && length() == 0));
+ || ((_flags & RemovableIfEmpty) && length(timeline_position()) == 0));
}
int
FileSource::init (const ustring& pathstr, bool must_exist)
{
- _length = 0;
_timeline_position = 0;
if (!find (_type, pathstr, must_exist, _file_is_new, _channel)) {