From 9b98a07cb61fd66fd73f9f58468100ec9b7eddd3 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 30 May 2019 20:08:39 +0100 Subject: Destory TranscodeJob earlier, hopefully to fix #1570. --- src/lib/job.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/lib/job.cc') diff --git a/src/lib/job.cc b/src/lib/job.cc index 1416ddfc2..43b5fb7e1 100644 --- a/src/lib/job.cc +++ b/src/lib/job.cc @@ -62,6 +62,12 @@ Job::Job (shared_ptr film) } Job::~Job () +{ + stop_thread (); +} + +void +Job::stop_thread () { if (_thread) { _thread->interrupt (); @@ -76,6 +82,7 @@ Job::~Job () } delete _thread; + _thread = 0; } /** Start the job in a separate thread, returning immediately */ -- cgit v1.2.3