Discard MediaInfo "error" (E:) lines.

This commit is contained in:
LoRd_MuldeR 2017-04-21 19:58:20 +02:00
parent 663bfd123c
commit 2e6236d842

View File

@ -528,6 +528,13 @@ void CMainWindow::processFinished(void)
m_outputLines.takeLast(); m_outputLines.takeLast();
} }
//Remove leading "E:" lines
while ((!m_outputLines.isEmpty()) && m_outputLines.first().trimmed().startsWith(QLatin1String("E: ")))
{
qWarning("E: line has been removed!");
m_outputLines.takeFirst();
}
//Failed? //Failed?
if(m_outputLines.empty()) if(m_outputLines.empty())
{ {