diff options
author | jstebbins <[email protected]> | 2009-06-04 18:26:19 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2009-06-04 18:26:19 +0000 |
commit | 528abac32d97db1606c2f26143512594529fa304 (patch) | |
tree | 59d7d328f2cfcabaca10f0fe783b3107810a8409 /gtk/src/presets.c | |
parent | a9eb0fba5299b12a951f2116276ef3382c1ff50a (diff) |
LinGui: new builtin presets
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2483 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/presets.c')
-rw-r--r-- | gtk/src/presets.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/src/presets.c b/gtk/src/presets.c index 74a101b79..ad2af5c67 100644 --- a/gtk/src/presets.c +++ b/gtk/src/presets.c @@ -2248,17 +2248,17 @@ import_value_xlat(GValue *dict) { key = "Subtitles"; mac_val = ghb_dict_lookup(dict, key); + slist = ghb_array_value_new(8); + ghb_dict_insert(dict, g_strdup("SubtitleList"), slist); if (mac_val) { gchar *lang; gval = import_subtitle_xlat2(mac_val); lang = ghb_value_string(gval); - if (lang && strcmp(lang, "none") != 0 && !slist) + if (lang && strcasecmp(lang, "none") != 0 && !slist) { - slist = ghb_array_value_new(8); sdict = ghb_dict_value_new(); - ghb_dict_insert(dict, g_strdup("SubtitleList"), slist); ghb_array_append(slist, sdict); ghb_dict_insert(sdict, g_strdup("SubtitleLanguage"), gval); gval = ghb_dict_lookup(dict, "SubtitlesForced"); |