summaryrefslogtreecommitdiffstats
path: root/macosx/HBPreset.m
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2015-10-07 10:52:22 -0700
committerJohn Stebbins <[email protected]>2015-10-09 13:48:30 -0700
commit71ec27786fb8f2d455b5b7317b9384d6dc3b058f (patch)
tree8e4e5ebe85106f4f8eb53abbbf7a3e0a4adb2cbf /macosx/HBPreset.m
parent305d591def7d9bb32f3dd3020c511970f3363960 (diff)
presets: add result to indicate if preset import modified presets
This information is useful to the frontends in creation of preset backups.
Diffstat (limited to 'macosx/HBPreset.m')
-rw-r--r--macosx/HBPreset.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/macosx/HBPreset.m b/macosx/HBPreset.m
index 26edbba6c..8b3d5c6ba 100644
--- a/macosx/HBPreset.m
+++ b/macosx/HBPreset.m
@@ -98,7 +98,10 @@
// Run the json through the libhb import function
// to avoid importing unknowns keys.
if (presetsJson.length) {
- char *importedJson = hb_presets_import_json(presetsJson.UTF8String);
+ char *importedJson;
+ int result;
+
+ result = hb_presets_import_json(presetsJson.UTF8String, &importedJson);
if (importedJson)
{