diff options
author | jstebbins <[email protected]> | 2013-05-10 17:16:07 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2013-05-10 17:16:07 +0000 |
commit | 00a8ff385456a670b2d72f60cd20bfa49340f7ef (patch) | |
tree | d7697a9c89ed3f1bb0cae039ae57f32d2cfd395e | |
parent | d6fa02bd89f78a9cdc2c7e8feb19889f6b89419d (diff) |
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
-rw-r--r-- | gtk/src/callbacks.c | 5 |
1 files changed, 5 insertions, 0 deletions
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); |