diff data/model/WaveFileModel.cpp @ 267:fa612dc181af

* Fix failure to play right to the end of files loaded from mp3 or ogg
author Chris Cannam
date Thu, 14 Jun 2007 13:49:30 +0000
parents 2268963dabd1
children 822bd7fd526c
line wrap: on
line diff
--- a/data/model/WaveFileModel.cpp	Fri Jun 08 15:19:50 2007 +0000
+++ b/data/model/WaveFileModel.cpp	Thu Jun 14 13:49:30 2007 +0000
@@ -456,6 +456,9 @@
     delete m_updateTimer;
     m_updateTimer = 0;
     m_mutex.unlock();
+    if (getEndFrame() > m_lastFillExtent) {
+        emit modelChanged(m_lastFillExtent, getEndFrame());
+    }
     emit modelChanged();
 #ifdef DEBUG_WAVE_FILE_MODEL
     cerr << "WaveFileModel::cacheFilled" << endl;