diff options
| author | b5f0d6c3 <[email protected]> | 2022-05-01 22:25:03 +0800 |
|---|---|---|
| committer | b5f0d6c3 <[email protected]> | 2022-05-01 22:25:03 +0800 |
| commit | b4eef8c40442c2883ff35eb61e302119c8570b6e (patch) | |
| tree | 72bfe7e1d2a34f75710a8989d1e5c7b3daa4dda0 /mkvlib/c/exports.go | |
| parent | 76503e8faca94ab83f0f05a45a06471a4a891d5d (diff) | |
update sdk
Diffstat (limited to 'mkvlib/c/exports.go')
| -rw-r--r-- | mkvlib/c/exports.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mkvlib/c/exports.go b/mkvlib/c/exports.go index 6652a0d..c728b69 100644 --- a/mkvlib/c/exports.go +++ b/mkvlib/c/exports.go @@ -160,11 +160,15 @@ func CopyFontsFromCache(subs, dist *C.char, lcb C.logCallback) bool { } //export Cache -func Cache(p *C.char) { +func Cache(ccs *C.char) { if !checkInstance() { return } - getter.GetProcessorInstance().Cache(gs(p)) + obj := make([]string, 0) + if json.Unmarshal([]byte(gs(ccs)), &obj) == nil { + _ccs := obj + getter.GetProcessorInstance().Cache(_ccs) + } } //export MKS |
