From 2cdfd08b888060e58a8f18267ed7f397b0a3d1f2 Mon Sep 17 00:00:00 2001 From: Vort Date: Tue, 21 May 2019 16:16:08 +0300 Subject: [PATCH] Improve MSVC 2015 compatibility of FileSource plugin (fixes #348) --- plugins/samplesource/filesource/filesourceinput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/samplesource/filesource/filesourceinput.cpp b/plugins/samplesource/filesource/filesourceinput.cpp index e4f1c8a18..0c701975d 100644 --- a/plugins/samplesource/filesource/filesourceinput.cpp +++ b/plugins/samplesource/filesource/filesourceinput.cpp @@ -178,7 +178,7 @@ bool FileSourceInput::start() QMutexLocker mutexLocker(&m_mutex); qDebug() << "FileSourceInput::start"; - if (m_ifstream.tellg() != 0) { + if (m_ifstream.tellg() != (std::streampos)0) { m_ifstream.clear(); m_ifstream.seekg(sizeof(FileRecord::Header), std::ios::beg); }