comparison data/fileio/OggVorbisFileReader.cpp @ 845:a299c4cec0f8

Likewise, but for toLocal8Bit().data()
author Chris Cannam
date Tue, 26 Nov 2013 13:48:13 +0000
parents 1424aa29ae95
children f3cda3280398 59e7fe1b1003
comparison
equal deleted inserted replaced
844:f5cd33909744 845:a299c4cec0f8
48 m_decodeThread(0) 48 m_decodeThread(0)
49 { 49 {
50 m_channelCount = 0; 50 m_channelCount = 0;
51 m_fileRate = 0; 51 m_fileRate = 0;
52 52
53 // SVDEBUG << "OggVorbisFileReader::OggVorbisFileReader(" << m_path.toLocal8Bit().data() << "): now have " << (++instances) << " instances" << endl; 53 // SVDEBUG << "OggVorbisFileReader::OggVorbisFileReader(" << m_path << "): now have " << (++instances) << " instances" << endl;
54 54
55 Profiler profiler("OggVorbisFileReader::OggVorbisFileReader", true); 55 Profiler profiler("OggVorbisFileReader::OggVorbisFileReader", true);
56 56
57 QFileInfo info(m_path); 57 QFileInfo info(m_path);
58 m_fileSize = info.size(); 58 m_fileSize = info.size();
100 } 100 }
101 } 101 }
102 102
103 OggVorbisFileReader::~OggVorbisFileReader() 103 OggVorbisFileReader::~OggVorbisFileReader()
104 { 104 {
105 // SVDEBUG << "OggVorbisFileReader::~OggVorbisFileReader(" << m_path.toLocal8Bit().data() << "): now have " << (--instances) << " instances" << endl; 105 // SVDEBUG << "OggVorbisFileReader::~OggVorbisFileReader(" << m_path << "): now have " << (--instances) << " instances" << endl;
106 if (m_decodeThread) { 106 if (m_decodeThread) {
107 m_cancelled = true; 107 m_cancelled = true;
108 m_decodeThread->wait(); 108 m_decodeThread->wait();
109 delete m_decodeThread; 109 delete m_decodeThread;
110 } 110 }