summaryrefslogtreecommitdiffstats
path: root/libhb/preset.h
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-03-21 10:40:03 -0600
committerJohn Stebbins <[email protected]>2016-03-21 10:40:03 -0600
commitaf1a27928318cc377562ec4026a2cbbfad83cbca (patch)
treea2a7e70f2a074c9bbac4f39b0148b726765c4335 /libhb/preset.h
parenta3e695dd5c0d23692ed0e99624723e39305cdd8d (diff)
presets: fix import of old version-less preset files
The version number was not added after import causing an attempt to do import conversions twice. The second conversion breaks values.
Diffstat (limited to 'libhb/preset.h')
-rw-r--r--libhb/preset.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/preset.h b/libhb/preset.h
index ebc8ebca6..3f6301abe 100644
--- a/libhb/preset.h
+++ b/libhb/preset.h
@@ -84,7 +84,7 @@ char * hb_presets_clean_json(const char *json);
// Import a preset. Sanitizes and converts old key/value pairs
// to new key/value pairs. This is applied for you by hb_presets_add(),
// hb_presets_add_json(), hb_presets_add_file(), and hb_presets_add_path()
-int hb_presets_import(hb_value_t *preset);
+int hb_presets_import(const hb_value_t *in, hb_value_t **out);
// Import a json preset. Sanitizes and converts old key/value pairs
// to new key/value pairs.