| 939 | } |
| 940 | |
| 941 | static void |
| 942 | audio_update_setting( |
| 943 | GhbValue *val, |
| 944 | const char *name, |
| 945 | signal_user_data_t *ud) |
| 946 | { |
| 947 | GhbValue *asettings; |
| 948 | |
| 949 | if (block_updates) |
| 950 | { |
| 951 | ghb_value_free(&val); |
| 952 | return; |
| 953 | } |
| 954 | |
| 955 | asettings = audio_get_selected_settings(ud, NULL); |
| 956 | if (asettings != NULL) |
| 957 | { |
| 958 | if (val != NULL) |
| 959 | ghb_dict_set(asettings, name, val); |
| 960 | else |
| 961 | ghb_dict_remove(asettings, name); |
| 962 | audio_deps(ud, asettings, NULL); |
| 963 | ghb_update_summary_info(ud); |
| 964 | ghb_audio_list_refresh_selected(ud); |
| 965 | ghb_live_reset(ud); |
| 966 | } |
| 967 | else |
| 968 | { |
| 969 | ghb_value_free(&val); |
| 970 | } |
| 971 | } |
| 972 | |
| 973 | G_MODULE_EXPORT void |
| 974 | audio_codec_changed_cb (GtkWidget *widget, gpointer data) |
no test coverage detected