| 762 | } |
| 763 | |
| 764 | static GhbValue* |
| 765 | subtitle_update_setting(GhbValue *val, const char *name, signal_user_data_t *ud) |
| 766 | { |
| 767 | GhbValue *subsettings; |
| 768 | |
| 769 | subsettings = subtitle_get_selected_settings(ud, NULL); |
| 770 | if (subsettings != NULL) |
| 771 | { |
| 772 | if (val != NULL) |
| 773 | ghb_dict_set(subsettings, name, val); |
| 774 | else |
| 775 | ghb_dict_remove(subsettings, name); |
| 776 | subtitle_list_refresh_selected(ud, subsettings); |
| 777 | ghb_update_summary_info(ud); |
| 778 | ghb_live_reset(ud); |
| 779 | } |
| 780 | else |
| 781 | { |
| 782 | ghb_value_free(&val); |
| 783 | } |
| 784 | return subsettings; |
| 785 | } |
| 786 | |
| 787 | G_MODULE_EXPORT void |
| 788 | subtitle_track_changed_cb (GtkWidget *widget, gpointer data) |
no test coverage detected