summaryrefslogtreecommitdiff
path: root/mkvlib
diff options
context:
space:
mode:
authorb5f0d6c3 <[email protected]>2021-10-21 17:26:08 +0800
committerb5f0d6c3 <[email protected]>2021-10-21 17:26:08 +0800
commit0e57ffbd2b9077cf9ac9bb1c60df2e7e0957747e (patch)
tree8774d781acdf07480c42932ba8c671c7efc765df /mkvlib
parent70353274a108b27a4cae3932b377b96253a168e6 (diff)
update sdk.py
Diffstat (limited to 'mkvlib')
-rw-r--r--mkvlib/c/sdk.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mkvlib/c/sdk.py b/mkvlib/c/sdk.py
index de9f53d..02f50c1 100644
--- a/mkvlib/c/sdk.py
+++ b/mkvlib/c/sdk.py
@@ -15,7 +15,7 @@ def initInstance(lcb):
def getMKVInfo(file):
call=lib.GetMKVInfo
call.restype=c_char_p
- return call(file.encode())
+ return loads()call(file.encode()).decode())
def dumpMKV(file,output,subset,lcb):
call=lib.DumpMKV
@@ -24,7 +24,7 @@ def dumpMKV(file,output,subset,lcb):
def checkSubset(file,lcb):
call=lib.CheckSubset
call.restype=c_char_p
- return call(file.encode(),lcb)
+ return loads(call(file.encode(),lcb).decode())
def createMKV(file,tracks,attachments,output,slang,stitle,clean):
call=lib.CreateMKV