x265 patch for threadpool shutdown fix submited as:
[goodguy/history.git] / cinelerra-5.0 / thirdparty / src / x265.patch1
diff --git a/cinelerra-5.0/thirdparty/src/x265.patch1 b/cinelerra-5.0/thirdparty/src/x265.patch1
new file mode 100644 (file)
index 0000000..dde859d
--- /dev/null
@@ -0,0 +1,14 @@
+--- a/source/encoder/encoder.cpp       2016-02-01 08:55:44.815838396 -0700
++++ b/source/encoder/encoder.cpp       2016-02-01 08:56:25.355766065 -0700
+@@ -318,7 +318,10 @@
+     }
+     if (m_threadPool)
+-        m_threadPool->stopWorkers();
++    {
++        for (int i = 0; i < m_numPools; i++)
++            m_threadPool[i].stopWorkers();
++    }
+ }
+ void Encoder::destroy()