summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2015-04-18 18:34:38 +0000
committerjstebbins <[email protected]>2015-04-18 18:34:38 +0000
commit3fcfbceaa26b116283e3ea1a76c45a66b04842ef (patch)
tree41984917505a6370276af316713ba50b88dff4cf /libhb
parent76a228b33e6d2be6a57c025914a1f30c22bc171f (diff)
filters: Fix generation of filter string
When there is no "tune" and extra ':' was added to the end of the string and caused a failure to validate the filter settings. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7101 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r--libhb/param.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libhb/param.c b/libhb/param.c
index 29315e44d..98b7fbc23 100644
--- a/libhb/param.c
+++ b/libhb/param.c
@@ -437,7 +437,8 @@ generate_generic_settings(int filter_id, const char *preset, const char *tune)
}
else if (preset_entry->settings != NULL)
{
- opt = hb_strdup_printf("%s:%s", preset_entry->settings,
+ opt = hb_strdup_printf("%s%s%s", preset_entry->settings,
+ tune_entry != NULL ? ":" : "",
tune_entry != NULL ? tune_entry->settings : "");
}
}