From 00a8ff385456a670b2d72f60cd20bfa49340f7ef Mon Sep 17 00:00:00 2001 From: jstebbins Date: Fri, 10 May 2013 17:16:07 +0000 Subject: [PATCH] LinGui: fix a problem with batch enqueue The current chapter start/end was applied to all titles. So if the currently selected title has fewer chapters than other titles, chapters would be missing in the encoded titles. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5449 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/callbacks.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 3b9edea12..e6b4714cb 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -1563,6 +1563,11 @@ set_title_settings(GValue *settings, gint titleindex) hb_title_t * title = ghb_get_title_info(titleindex); if (title != NULL) { + gint num_chapters = hb_list_count(title->list_chapter); + + ghb_settings_set_int(settings, "PtoPType", 0); + ghb_settings_set_int(settings, "start_point", 1); + ghb_settings_set_int(settings, "end_point", num_chapters); ghb_settings_set_int(settings, "source_width", title->width); ghb_settings_set_int(settings, "source_height", title->height); ghb_settings_set_string(settings, "source", title->path); -- 2.40.0