Mercurial > hg > svcore
diff data/model/FFTModel.cpp @ 1281:6463046bd21d 3.0-integration
Debug note when we overrun end of data
author | Chris Cannam |
---|---|
date | Wed, 23 Nov 2016 10:34:45 +0000 |
parents | bac86d3fc6c9 |
children | 12a1da4719c7 |
line wrap: on
line diff
--- a/data/model/FFTModel.cpp Wed Nov 23 10:34:30 2016 +0000 +++ b/data/model/FFTModel.cpp Wed Nov 23 10:34:45 2016 +0000 @@ -269,6 +269,12 @@ range.first, range.second - range.first); + if (data.empty()) { + SVDEBUG << "NOTE: empty source data for range (" << range.first << "," + << range.second << ") (model end frame " + << m_model->getEndFrame() << ")" << endl; + } + // don't return a partial frame data.resize(range.second - range.first, 0.f);