summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorac79b0c6 <[email protected]>2022-05-07 19:44:12 +0800
committerac79b0c6 <[email protected]>2022-05-07 19:44:12 +0800
commit53393f26e5268814ad2c60d0cc69d71accd1cace (patch)
tree3a6ece387b39dda5c933eddea9caf76eba846982
parent37e7d0c56320b15898ab1fe63aace3c769e7aeba (diff)
update mkvlib
-rw-r--r--mkvlib/ass2pgs.go2
-rw-r--r--mkvlib/mkv.go2
-rw-r--r--mkvlib/shared.go2
3 files changed, 5 insertions, 1 deletions
diff --git a/mkvlib/ass2pgs.go b/mkvlib/ass2pgs.go
index fd5b438..166db1e 100644
--- a/mkvlib/ass2pgs.go
+++ b/mkvlib/ass2pgs.go
@@ -2,6 +2,7 @@ package mkvlib
import (
"fmt"
+ "os"
"path"
)
@@ -23,6 +24,7 @@ func ass2Pgs(input []string, resolution, frameRate, fontsDir, output string, lcb
r = err == nil && s.ExitCode() == 0
if !r {
printLog(lcb, fmt.Sprintf(`Failed to Ass2Pgs:"%s"`, item))
+ _ = os.Remove(fn)
}
}
}
diff --git a/mkvlib/mkv.go b/mkvlib/mkv.go
index 1dae890..28de0b9 100644
--- a/mkvlib/mkv.go
+++ b/mkvlib/mkv.go
@@ -486,6 +486,8 @@ func (self *mkvProcessor) CreateTestVideo(asses []string, s, fontdir, enc string
if !self.CreateMKV(s, asses, _fonts, output, "", "", true) {
ok = false
printLog(lcb, `Failed to create the test video file: "%s".`, output)
+ } else {
+ printLog(lcb, "CT done.")
}
}
if _t {
diff --git a/mkvlib/shared.go b/mkvlib/shared.go
index 0c63916..d048448 100644
--- a/mkvlib/shared.go
+++ b/mkvlib/shared.go
@@ -11,7 +11,7 @@ import (
)
const libName = "mkvlib"
-const libVer = "v1.9.1"
+const libVer = "v1.9.2"
const LibFName = libName + " " + libVer