diff options
author | John Stebbins <[email protected]> | 2016-08-25 10:43:53 -0700 |
---|---|---|
committer | Bradley Sepos <[email protected]> | 2016-09-02 03:33:06 -0400 |
commit | 59803dafcc75c4a2364faf172d93ffef3985e300 (patch) | |
tree | d46e1248d2e0e4e60dbfed8f4ec409f4fa746c05 /gtk/src/audiohandler.c | |
parent | fb78eca4a49077c171ad78177c1615c205adc642 (diff) |
LinGui: disable invalid audio samplerates
opus only supports a limited set of samplerates. disable those that do
not apply.
Diffstat (limited to 'gtk/src/audiohandler.c')
-rw-r--r-- | gtk/src/audiohandler.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/src/audiohandler.c b/gtk/src/audiohandler.c index 8e434964f..ba35ef972 100644 --- a/gtk/src/audiohandler.c +++ b/gtk/src/audiohandler.c @@ -199,6 +199,10 @@ ghb_adjust_audio_rate_combos(signal_user_data_t *ud, GhbValue *asettings) GtkWidget *w = GHB_WIDGET(ud->builder, "AudioBitrate"); ghb_audio_bitrate_opts_filter(GTK_COMBO_BOX(w), low, high); + w = GHB_WIDGET(ud->builder, "AudioMixdown"); + ghb_mix_opts_filter(GTK_COMBO_BOX(w), acodec); + w = GHB_WIDGET(ud->builder, "AudioSamplerate"); + ghb_audio_samplerate_opts_filter(GTK_COMBO_BOX(w), acodec); ghb_ui_update(ud, "AudioEncoder", ghb_dict_get_value(asettings, "Encoder")); @@ -2138,6 +2142,8 @@ void audio_def_set_limits(signal_user_data_t *ud, GtkWidget *widget, gboolean se ghb_audio_bitrate_opts_filter(GTK_COMBO_BOX(w), low, high); w = find_widget(GTK_WIDGET(row), "AudioMixdown"); ghb_mix_opts_filter(GTK_COMBO_BOX(w), enc); + w = find_widget(GTK_WIDGET(row), "AudioSamplerate"); + ghb_audio_samplerate_opts_filter(GTK_COMBO_BOX(w), enc); } void audio_def_set_all_limits_cb(GtkWidget *widget, gpointer data) |