Mercurial > hg > svcore
comparison data/fileio/CodedAudioFileReader.cpp @ 1403:edee37ae5882
Debug output
author | Chris Cannam |
---|---|
date | Tue, 07 Mar 2017 11:48:44 +0000 |
parents | cc62d7862203 |
children | cee1be4fb8c1 |
comparison
equal
deleted
inserted
replaced
1402:aadfb395e933 | 1403:edee37ae5882 |
---|---|
480 m_dataLock.lock(); | 480 m_dataLock.lock(); |
481 try { | 481 try { |
482 m_data.insert(m_data.end(), buffer, buffer + count); | 482 m_data.insert(m_data.end(), buffer, buffer + count); |
483 } catch (const std::bad_alloc &e) { | 483 } catch (const std::bad_alloc &e) { |
484 m_data.clear(); | 484 m_data.clear(); |
485 SVCERR << "CodedAudioFileReader: Caught bad_alloc when trying to add " << count << " elements to buffer" << endl; | |
485 m_dataLock.unlock(); | 486 m_dataLock.unlock(); |
486 throw e; | 487 throw e; |
487 } | 488 } |
488 m_dataLock.unlock(); | 489 m_dataLock.unlock(); |
489 break; | 490 break; |