QTfrontend/net/recorder.cpp
changeset 14634 8ffa0c27f434
parent 14604 b86e6e4f3c58
child 15288 c4fd2813b127
--- a/QTfrontend/net/recorder.cpp	Thu Jan 17 22:48:14 2019 +0100
+++ b/QTfrontend/net/recorder.cpp	Thu Jan 17 23:46:00 2019 +0100
@@ -23,6 +23,7 @@
 #include "gameuiconfig.h"
 #include "hwconsts.h"
 #include "game.h"
+#include "util/MessageDialog.h"
 #include "LibavInteraction.h"
 
 // Encoding is memory expensive process, so we need to limit maximum number
@@ -76,6 +77,16 @@
         case 'v':
             finished = true;
             break;
+        case 'E':
+            int size = msg.size();
+            emit ErrorMessage(
+                tr("A fatal ERROR occured while processing the video recording! "
+                "The video could not be saved.\n\n"
+                "As a workaround, you could try to reset the Hedgewars video recorder settings to the defaults.\n\n"
+                "To report this error, please click the 'Feedback' button in the main menu!\n\n"
+                "Last engine message:\n%1")
+                .arg(QString::fromUtf8(msg.mid(2).left(size - 4))));
+            return;
         }
     }
 }