From 629ca7602ebb4ee7ef355f7062336cee79a9e1e7 Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Thu, 15 Aug 2019 14:20:01 -0700 Subject: LinGui: Fix null subtitle name Fixes https://github.com/HandBrake/HandBrake/issues/2244 --- gtk/src/subtitlehandler.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gtk/src/subtitlehandler.c') 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); -- cgit v1.2.3