From ac809f509022e665d28af3003245d818c76f2098 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Mon, 11 Aug 2014 14:49:04 +0000 Subject: LinGui: Fix title numbers in auto destination filename git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6286 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/callbacks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk/src') diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 9b765958d..7475f478d 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -604,9 +604,9 @@ set_destination_settings(signal_user_data_t *ud, GValue *settings) } else if (!strncmp(p, "{title}", strlen("{title}"))) { - gint title = ghb_settings_get_int(settings, "title_no"); + gint title = ghb_settings_get_int(settings, "title"); if (title >= 0) - g_string_append_printf(str, "%d", title+1); + g_string_append_printf(str, "%d", title); p += strlen("{title}"); } else if (!strncmp(p, "{chapters}", strlen("{chapters}"))) -- cgit v1.2.3