@Override
protected ConvertResult doInBackground() throws Exception {
try {
- transformedComment = File.createTempFile("vhk", ".tmp", profile.getTempDir());
- final HideCondition hide = profile.getNgSetting();
- if (commentFile != null) {
+ if (profile.getOutputProfile().isCommentOverlay()) {
+ transformedComment = File.createTempFile("vhk", ".tmp", profile.getTempDir());
+ final HideCondition hide = profile.getNgSetting();
publish(new ConvertProgress("コメントの中間ファイルへの変換中"));
final boolean conv = ConvertToVideoHook.convert(commentFile, transformedComment, hide.getId(), hide.
getWord());