diff options
author | jstebbins <[email protected]> | 2014-02-25 00:41:24 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2014-02-25 00:41:24 +0000 |
commit | 52140b164daccfbad57c9dbf91b196f1ff203e48 (patch) | |
tree | 7b6f1b3201dd0708fbc47e95c96945872e9b0c04 /gtk/src/callbacks.c | |
parent | 62040281f4b9c793855db517675ff5ccdeda6995 (diff) |
LinGui: fix some preset loading issues
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6081 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/callbacks.c')
-rw-r--r-- | gtk/src/callbacks.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 81522d5ad..fd1988ea9 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -1822,10 +1822,10 @@ set_title_settings(signal_user_data_t *ud, GValue *settings) ghb_settings_set_string(settings, "MetaLongDescription", title->metadata->long_description); } + update_chapter_list_settings(settings); + ghb_set_pref_audio_settings(settings); ghb_set_pref_subtitle_settings(ud, title, settings); } - update_chapter_list_settings(settings); - ghb_set_pref_audio_settings(settings); set_destination_settings(ud, settings); ghb_settings_set_value(settings, "dest_dir", @@ -1853,7 +1853,7 @@ static void load_all_titles(signal_user_data_t *ud, int titleindex) { gint ii, count; - GValue *preset, *preset_path; + GValue *preset, *preset_path = NULL; GValue *settings_array; const hb_title_t *title; @@ -1866,7 +1866,14 @@ load_all_titles(signal_user_data_t *ud, int titleindex) settings_array = ghb_array_value_new(count); preset = ghb_get_current_preset(ud); - preset_path = ghb_get_current_preset_path(ud); + if (preset != NULL) + { + preset_path = ghb_get_current_preset_path(ud); + } + else + { + preset = ud->settings; + } for (ii = 0; ii < count; ii++) { int index; |