diff options
| author | ac79b0c6 <[email protected]> | 2022-05-26 12:46:46 +0800 |
|---|---|---|
| committer | ac79b0c6 <[email protected]> | 2022-05-26 12:46:46 +0800 |
| commit | 9d82f48777c1e130ee8cf90b35fd5af995c82626 (patch) | |
| tree | 10bc7b541967f732fb598145e8072ee2b645b625 /mkvlib/c/sdk.cs | |
| parent | fe28d2cae30402f05432121a5318150fe1c960bf (diff) | |
update sdk
Diffstat (limited to 'mkvlib/c/sdk.cs')
| -rw-r--r-- | mkvlib/c/sdk.cs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/mkvlib/c/sdk.cs b/mkvlib/c/sdk.cs index d174357..9913a1a 100644 --- a/mkvlib/c/sdk.cs +++ b/mkvlib/c/sdk.cs @@ -103,11 +103,7 @@ public static class mkvlib public static bool[] CheckSubset(string file, Action<string> lcb) { string json = css(CheckSubset(cs(file), _lcb(lcb))); - JsonDocument doc = JsonDocument.Parse(json); - bool[] result = new bool[2]; - result[0] = doc.RootElement.GetProperty("subsetted").GetBoolean(); - result[1] = doc.RootElement.GetProperty("error").GetBoolean(); - return result; + return JsonSerializer.Deserialize<bool[]>(json); } public static bool CreateMKV(string file, string[] tracks, string[] attachments, string output, string slang, string stitle, bool clean) |
