QTfrontend/net/recorder.cpp
changeset 13649 1b536e268519
parent 13497 c7df0d96da81
child 14604 b86e6e4f3c58
--- a/QTfrontend/net/recorder.cpp	Wed Aug 08 15:22:34 2018 +0200
+++ b/QTfrontend/net/recorder.cpp	Wed Aug 08 18:36:12 2018 +0200
@@ -39,6 +39,7 @@
     this->prefix = prefix;
     item = 0;
     finished = false;
+    aborted = false;
     name = prefix + "." + LibavInteraction::instance().getExtension(config->AVFormat());
 }
 
@@ -152,3 +153,10 @@
 {
     return true;
 }
+
+void HWRecorder::abort()
+{
+    queue.removeOne(this);
+    aborted = true;
+    deleteLater();
+}