diff options
-rw-r--r-- | libs/ardour/auditioner.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/ardour/auditioner.cc b/libs/ardour/auditioner.cc index a202fd8554..080a11703b 100644 --- a/libs/ardour/auditioner.cc +++ b/libs/ardour/auditioner.cc @@ -377,6 +377,11 @@ Auditioner::audition_region (boost::shared_ptr<Region> region) offset = the_region->sync_offset (dir); } + if (length == 0) { + error << _("Cannot audition empty file.") << endmsg; + return; + } + /* can't audition from a negative sync point */ if (dir < 0) { |