bugfix: 无进度条时仍试图刷新进度
This commit is contained in:
+1
-1
@@ -66,7 +66,7 @@ def start_ffmpeg(infile: Path, outfile: Path):
|
||||
|
||||
|
||||
def set_progress(line: str, dur, pbar):
|
||||
if not line.startswith("out_time_ms="):
|
||||
if not pbar or not line.startswith("out_time_ms="):
|
||||
return
|
||||
try:
|
||||
us = int(line.split('=')[1])
|
||||
|
||||
Reference in New Issue
Block a user