summaryrefslogtreecommitdiffstats
path: root/gtk/src/subtitlehandler.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2012-05-26 08:58:22 +0000
committerjstebbins <[email protected]>2012-05-26 08:58:22 +0000
commit776795b2995044dc92b02e10155fff2644776fe3 (patch)
treeadb7de1cff613148b41bdd7195cb634540ddc5ea /gtk/src/subtitlehandler.c
parent89b5fd2675d556414ea988408193b8e21a63f159 (diff)
LinGui: fix a bunch of compiler warnings
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4701 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/subtitlehandler.c')
-rw-r--r--gtk/src/subtitlehandler.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/src/subtitlehandler.c b/gtk/src/subtitlehandler.c
index fee75f75b..bf393f08c 100644
--- a/gtk/src/subtitlehandler.c
+++ b/gtk/src/subtitlehandler.c
@@ -325,7 +325,6 @@ add_all_pref_subtitles(signal_user_data_t *ud)
for (ii = 0; ii < count; ii++)
{
subtitle = ghb_value_dup(ghb_array_get_nth(pref_subtitle, ii));
- gboolean force = ghb_settings_get_boolean(subtitle, "SubtitleForced");
lang = ghb_settings_get_string(subtitle, "SubtitleLanguage");
// If there are multiple subtitles using the same language, then
// select sequential tracks for each. The hash keeps track
@@ -355,7 +354,7 @@ ghb_set_pref_subtitle_settings(gint titleindex, GValue *settings)
gint track;
GHashTable *track_indices;
gchar *lang, *pref_lang = NULL;
- gchar *audio_lang;
+ const gchar *audio_lang;
gint foreign_lang_index = -1;
gboolean found_cc = FALSE;
@@ -416,11 +415,12 @@ ghb_set_pref_subtitle_settings(gint titleindex, GValue *settings)
g_free(lang);
if (track >= -1)
{
+ const gchar *track_lang;
GValue *dup = ghb_value_dup(subtitle);
- lang = ghb_subtitle_track_lang(settings, track);
+ track_lang = ghb_subtitle_track_lang(settings, track);
ghb_settings_set_int(dup, "SubtitleTrack", track);
if (foreign_lang_index < 0 && pref_lang != NULL &&
- strcmp(lang, pref_lang) == 0)
+ strcmp(track_lang, pref_lang) == 0)
{
foreign_lang_index = jj;
ghb_settings_take_value(dup, "SubtitleForced",