Not closing file if passing in a file instead of a filename
This commit is contained in:
parent
f6a7601fd7
commit
0a6a50b7aa
@ -697,7 +697,7 @@ def Danmaku2ASS(input_files, output_file, stage_width, stage_height, reserve_bla
|
|||||||
fo = sys.stdout
|
fo = sys.stdout
|
||||||
ProcessComments(comments, fo, stage_width, stage_height, reserve_blank, font_face, font_size, text_opacity, comment_duration, is_reduce_comments, progress_callback)
|
ProcessComments(comments, fo, stage_width, stage_height, reserve_blank, font_face, font_size, text_opacity, comment_duration, is_reduce_comments, progress_callback)
|
||||||
finally:
|
finally:
|
||||||
if output_file and fo:
|
if output_file and fo != output_file:
|
||||||
fo.close()
|
fo.close()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user