From 2e6236d8422ad9d7476e3072a393ea68b719a4f5 Mon Sep 17 00:00:00 2001 From: MuldeR Date: Fri, 21 Apr 2017 19:58:20 +0200 Subject: [PATCH] Discard MediaInfo "error" (E:) lines. --- src/MainWindow.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index c040239..f03a457 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -528,6 +528,13 @@ void CMainWindow::processFinished(void) 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? if(m_outputLines.empty()) {