Check content in the batch converter as well as in the main DoM. batch-font-id-error
authorCarl Hetherington <cth@carlh.net>
Wed, 22 Jun 2022 07:48:49 +0000 (09:48 +0200)
committerCarl Hetherington <cth@carlh.net>
Wed, 22 Jun 2022 07:48:49 +0000 (09:48 +0200)
Otherwise the code to fix up subtitle IDs never runs and you can
get errors like in #2271 (but in the batch converter).

src/tools/dcpomatic_batch.cc

index 79f1b39fa0f7080efda7cef3c9759bb5f37410dd..7280129a9461fff043abdcce09036323a73f00a3 100644 (file)
@@ -26,6 +26,7 @@
 #include "wx/servers_list_dialog.h"
 #include "wx/wx_signal_manager.h"
 #include "wx/wx_util.h"
+#include "lib/check_content_job.h"
 #include "lib/compose.hpp"
 #include "lib/config.h"
 #include "lib/dcpomatic_socket.h"
@@ -215,6 +216,7 @@ public:
                                }
                        }
 
+                       JobManager::instance()->add(make_shared<CheckContentJob>(film));
                        make_dcp (film, TranscodeJob::ChangedBehaviour::STOP);
                } catch (std::exception& e) {
                        auto p = std_to_wx (path.string ());