diff options
author | jstebbins <[email protected]> | 2010-10-14 17:21:36 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2010-10-14 17:21:36 +0000 |
commit | 89138865431271c51609035dc7603dec0dbeebae (patch) | |
tree | e16fea708790bbe4d3baf2fe81aef331c6da8f83 /gtk | |
parent | e27b59a0c54bf20632ea0dd971f033718334db44 (diff) |
LinGui: fix audio codec updating when track is changed
When the track changes, the fallback or passthru codec may need
recalculating.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3602 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/src/audiohandler.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/src/audiohandler.c b/gtk/src/audiohandler.c index 4a87a2763..f6b346646 100644 --- a/gtk/src/audiohandler.c +++ b/gtk/src/audiohandler.c @@ -21,6 +21,7 @@ #include "audiohandler.h" static void ghb_add_audio(signal_user_data_t *ud, GValue *settings); +static GValue* get_selected_asettings(signal_user_data_t *ud); void ghb_adjust_audio_rate_combos(signal_user_data_t *ud) @@ -128,6 +129,13 @@ ghb_adjust_audio_rate_combos(signal_user_data_t *ud) ghb_settings_take_value(ud->settings, "AudioEncoderActual", ghb_lookup_acodec_value(select_acodec)); + GValue *asettings = get_selected_asettings(ud); + if (asettings) + { + ghb_settings_take_value(asettings, "AudioEncoderActual", + ghb_lookup_acodec_value(select_acodec)); + } + ghb_audio_list_refresh_selected(ud); ghb_check_dependency(ud, NULL, "AudioEncoderActual"); } |