mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-08 08:54:49 -04:00
PVS-Studio static analysis corrections (1) issue #137
This commit is contained in:
@@ -112,7 +112,7 @@ void FileSourceInput::seekFileStream(int seekPercentage)
|
||||
{
|
||||
QMutexLocker mutexLocker(&m_mutex);
|
||||
|
||||
if ((m_ifstream.is_open()) && !m_fileSourceThread->isRunning())
|
||||
if ((m_ifstream.is_open()) && m_fileSourceThread && !m_fileSourceThread->isRunning())
|
||||
{
|
||||
int seekPoint = ((m_recordLength * seekPercentage) / 100) * m_sampleRate;
|
||||
m_fileSourceThread->setSamplesCount(seekPoint);
|
||||
|
||||
@@ -52,7 +52,7 @@ public:
|
||||
private:
|
||||
QMutex m_startWaitMutex;
|
||||
QWaitCondition m_startWaiter;
|
||||
bool m_running;
|
||||
volatile bool m_running;
|
||||
|
||||
std::ifstream* m_ifstream;
|
||||
quint8 *m_fileBuf;
|
||||
|
||||
Reference in New Issue
Block a user