summaryrefslogtreecommitdiffstats
path: root/gtk/src
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2019-08-15 14:20:01 -0700
committerJohn Stebbins <[email protected]>2019-08-15 14:20:01 -0700
commit629ca7602ebb4ee7ef355f7062336cee79a9e1e7 (patch)
treebffa667f2908aae5a46d4798a2a384e7926517f3 /gtk/src
parentba6c7ff5b3f5d4f680869727b01037dc6ab42e1e (diff)
LinGui: Fix null subtitle name
Fixes https://github.com/HandBrake/HandBrake/issues/2244
Diffstat (limited to 'gtk/src')
-rw-r--r--gtk/src/subtitlehandler.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/src/subtitlehandler.c b/gtk/src/subtitlehandler.c
index 684603895..4014b222c 100644
--- a/gtk/src/subtitlehandler.c
+++ b/gtk/src/subtitlehandler.c
@@ -779,7 +779,10 @@ subtitle_update_setting(GhbValue *val, const char *name, signal_user_data_t *ud)
subsettings = subtitle_get_selected_settings(ud, NULL);
if (subsettings != NULL)
{
- ghb_dict_set(subsettings, name, val);
+ if (val != NULL)
+ ghb_dict_set(subsettings, name, val);
+ else
+ ghb_dict_remove(subsettings, name);
subtitle_list_refresh_selected(ud, subsettings);
ghb_update_summary_info(ud);
ghb_live_reset(ud);