summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2014-08-11 14:49:04 +0000
committerjstebbins <[email protected]>2014-08-11 14:49:04 +0000
commitac809f509022e665d28af3003245d818c76f2098 (patch)
tree992950d047182081127fc1ff4473fb6da6b77f62
parent6aee3b7518264af46fd7d2f4580579313e2eaf72 (diff)
LinGui: Fix title numbers in auto destination filename
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6286 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--gtk/src/callbacks.c4
1 files changed, 2 insertions, 2 deletions
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}")))