diff options
author | jstebbins <[email protected]> | 2015-02-18 23:18:36 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2015-02-18 23:18:36 +0000 |
commit | 1d3b058dfc89df74e6cd7d7325b2f53831f3e65e (patch) | |
tree | d2e82a81499de20d75686f19ea0ff297b2f6b13e /gtk/src/hb-backend.c | |
parent | 44f7f22f2faf92e814663c26ef2687ffdf202885 (diff) |
LinGui: Fix subtitle burn-in validation
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6924 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/hb-backend.c')
-rw-r--r-- | gtk/src/hb-backend.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c index 2216df598..bfe48a0a8 100644 --- a/gtk/src/hb-backend.c +++ b/gtk/src/hb-backend.c @@ -4000,7 +4000,7 @@ ghb_validate_subtitles(GValue *settings, GtkWindow *parent) } const GValue *slist, *subtitle; - gint count, ii, source; + gint count, ii, source, track; gboolean burned, one_burned = FALSE; slist = ghb_settings_get_value(settings, "subtitle_list"); @@ -4008,8 +4008,10 @@ ghb_validate_subtitles(GValue *settings, GtkWindow *parent) for (ii = 0; ii < count; ii++) { subtitle = ghb_array_get_nth(slist, ii); + track = ghb_settings_get_int(subtitle, "SubtitleTrack"); source = ghb_settings_get_int(subtitle, "SubtitleSource"); - burned = ghb_settings_get_boolean(subtitle, "SubtitleBurned"); + burned = track != -1 && + ghb_settings_get_boolean(subtitle, "SubtitleBurned"); if (burned && one_burned) { // MP4 can only handle burned vobsubs. make sure there isn't |