summaryrefslogtreecommitdiffstats
path: root/gtk/src/subtitlehandler.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-08-24 21:45:32 +0000
committerjstebbins <[email protected]>2009-08-24 21:45:32 +0000
commit9a8b91075cc16230498db80e524a6f3899aac2cd (patch)
tree39a799a8d58d8df8c279f00787a4861cbf667314 /gtk/src/subtitlehandler.c
parent2752e26db58d8304e3ddb03a9b95c4f9af7bf5fa (diff)
LinGui: change mp4 extension to m4v if there are any soft subtitles
yet another qt boneheadism git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2775 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/subtitlehandler.c')
-rw-r--r--gtk/src/subtitlehandler.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/gtk/src/subtitlehandler.c b/gtk/src/subtitlehandler.c
index c2ee73cfd..7968e5dae 100644
--- a/gtk/src/subtitlehandler.c
+++ b/gtk/src/subtitlehandler.c
@@ -59,6 +59,24 @@ mustBurn(signal_user_data_t *ud, gint track)
return FALSE;
}
+gboolean
+ghb_soft_in_subtitle_list(GValue *subtitle_list)
+{
+ gint count, ii;
+ GValue *settings;
+
+ count = ghb_array_len(subtitle_list);
+ for (ii = 0; ii < count; ii++)
+ {
+ settings = ghb_array_get_nth(subtitle_list, ii);
+ if (!ghb_settings_get_boolean(settings, "SubtitleBurned"))
+ {
+ return TRUE;
+ }
+ }
+ return FALSE;
+}
+
void
ghb_subtitle_exclusive_burn(signal_user_data_t *ud, gint index)
{
@@ -167,6 +185,7 @@ ghb_add_srt(signal_user_data_t *ud, GValue *settings)
widget = GHB_WIDGET (ud->builder, "srt_add");
gtk_widget_set_sensitive(widget, FALSE);
}
+ ghb_update_destination_extension(ud);
ghb_live_reset(ud);
}
@@ -225,6 +244,7 @@ ghb_add_subtitle(signal_user_data_t *ud, GValue *settings)
widget = GHB_WIDGET (ud->builder, "srt_add");
gtk_widget_set_sensitive(widget, FALSE);
}
+ ghb_update_destination_extension(ud);
ghb_live_reset(ud);
}
@@ -563,6 +583,7 @@ subtitle_burned_toggled_cb(
// Unburn the rest
if (active)
ghb_subtitle_exclusive_burn(ud, row);
+ ghb_update_destination_extension(ud);
ghb_live_reset(ud);
}