diff options
author | John Stebbins <[email protected]> | 2016-03-28 10:06:28 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2016-03-28 10:06:28 -0700 |
commit | 113e2a55a49dbac93abb22a7fc77987d589304b3 (patch) | |
tree | b1d4889334709e6195c9e5c7ac94883982611c79 | |
parent | 033fda8f6879af30cc872e87a612e35ba0a3113f (diff) |
presets: fix PictureRotate import
When it's value's type is an int instead of a string, it was not
imported correctly.
-rw-r--r-- | libhb/preset.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libhb/preset.c b/libhb/preset.c index ac733a39e..f51dbb519 100644 --- a/libhb/preset.c +++ b/libhb/preset.c @@ -2032,7 +2032,7 @@ void hb_presets_clean(hb_value_t *preset) static void import_custom_11_1_0(hb_value_t * preset, int filter_id, const char * key) { - const char *str = hb_dict_get_string(preset, key); + char *str = hb_value_get_string_xform(hb_dict_get(preset, key)); if (str == NULL) { return; @@ -2051,6 +2051,7 @@ static void import_custom_11_1_0(hb_value_t * preset, int filter_id, char ** tmpl = hb_str_vsplit(filter->settings_template, ':'); int ii; + free(str); hb_dict_t * dict = hb_dict_init(); for (ii = 0; values[ii] != NULL; ii++) { |