[x265-commits] [x265] encoder: fix crash with --pools none

Steve Borho steve at borho.org
Wed Mar 11 20:45:07 CET 2015


details:   http://hg.videolan.org/x265/rev/78a1e8dfc2d5
branches:  
changeset: 9684:78a1e8dfc2d5
user:      Steve Borho <steve at borho.org>
date:      Wed Mar 11 14:44:38 2015 -0500
description:
encoder: fix crash with --pools none

diffstat:

 source/encoder/encoder.cpp |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 04b2c2544e9c -r 78a1e8dfc2d5 source/encoder/encoder.cpp
--- a/source/encoder/encoder.cpp	Wed Mar 11 12:27:27 2015 +0530
+++ b/source/encoder/encoder.cpp	Wed Mar 11 14:44:38 2015 -0500
@@ -297,7 +297,8 @@ void Encoder::stop()
         }
     }
 
-    m_threadPool->stop();
+    if (m_threadPool)
+        m_threadPool->stop();
 }
 
 void Encoder::destroy()


More information about the x265-commits mailing list