diff options
| author | b5f0d6c3 <[email protected]> | 2022-04-27 23:39:21 +0800 |
|---|---|---|
| committer | b5f0d6c3 <[email protected]> | 2022-04-27 23:39:21 +0800 |
| commit | 5f8672ac65ef6d4a19fc70a39798a4921690b407 (patch) | |
| tree | bdeb0d98736b46a24e7bfd7abb43c161661caafb /mkvlib/c | |
| parent | 1927ddd43cad6fd528f8644ffa6efb760c8091dd (diff) | |
update sdk
Diffstat (limited to 'mkvlib/c')
| -rw-r--r-- | mkvlib/c/exports.go | 2 | ||||
| -rw-r--r-- | mkvlib/c/sdk.cs | 6 | ||||
| -rw-r--r-- | mkvlib/c/sdk.py | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/mkvlib/c/exports.go b/mkvlib/c/exports.go index d147e5a..20e362e 100644 --- a/mkvlib/c/exports.go +++ b/mkvlib/c/exports.go @@ -124,7 +124,7 @@ func MakeMKVs(dir, data, output, slang, stitle *C.char, lcb C.logCallback) bool } //export A2P -func A2P(a2p, apc bool, pr, pf int) { +func A2P(a2p, apc bool, pr, pf string) { if !checkInstance() { return } diff --git a/mkvlib/c/sdk.cs b/mkvlib/c/sdk.cs index ec41119..e40bf9b 100644 --- a/mkvlib/c/sdk.cs +++ b/mkvlib/c/sdk.cs @@ -38,7 +38,7 @@ public static class mkvlib static extern bool MakeMKVs(IntPtr dir, IntPtr data, IntPtr output, IntPtr slang, IntPtr stitle, logCallback lcb); [DllImport("mkvlib.so")] - static extern void A2P(bool a2p, bool apc, int pr, int pf); + static extern void A2P(bool a2p, bool apc, IntPtr pr, IntPtr pf); [DllImport("mkvlib.so")] static extern IntPtr GetFontsList(IntPtr dir, logCallback lcb); @@ -116,9 +116,9 @@ public static class mkvlib return MakeMKVs(cs(dir), cs(data), cs(output), cs(slang), cs(stitle), _lcb(lcb)); } - public static void A2P(bool a2p, bool apc, int pr, int pf) + public static void A2P(bool a2p, bool apc, string pr, string pf) { - A2P(a2p, apc, pr, pf); + A2P(a2p, apc, cs(pr), cs(pf)); } public static string[] GetFontsList(string dir, Action<string> lcb) diff --git a/mkvlib/c/sdk.py b/mkvlib/c/sdk.py index 68e7675..850b851 100644 --- a/mkvlib/c/sdk.py +++ b/mkvlib/c/sdk.py @@ -70,7 +70,7 @@ def makeMKVs(dir, data, output, slang, stitle, lcb): def a2p(en, apc, pr, pf): call = lib.A2P - call(en, apc, pr, pf) + call(en, apc, pr.encode(), pf.encode()) def getFontsList(dir, lcb): |
