summaryrefslogtreecommitdiffstats
path: root/gtk/src
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-11-11 08:02:46 -0800
committerJohn Stebbins <[email protected]>2016-11-11 08:04:39 -0800
commit99f7ee176393bb9c178af40ede5042daa2eddb16 (patch)
tree84ff2d9be676a1edf8bb57442b42d173589795d1 /gtk/src
parente9fc9ccc1539834a0a51e2d948c6e04cc6ea9b88 (diff)
LinGui: fix number of frames encoded for PtoP frames
Diffstat (limited to 'gtk/src')
-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 29e576b2b..d8a27567d 100644
--- a/gtk/src/callbacks.c
+++ b/gtk/src/callbacks.c
@@ -2493,7 +2493,7 @@ start_point_changed_cb(GtkWidget *widget, signal_user_data_t *ud)
update_title_duration(ud);
ghb_dict_set_int(range, "Start", start - 1);
- ghb_dict_set_int(range, "End", end - 1 - start);
+ ghb_dict_set_int(range, "End", end - start + 1);
}
}
@@ -2557,7 +2557,7 @@ end_point_changed_cb(GtkWidget *widget, signal_user_data_t *ud)
update_title_duration(ud);
ghb_dict_set_int(range, "Start", start - 1);
- ghb_dict_set_int(range, "End", end - 1 - start);
+ ghb_dict_set_int(range, "End", end - start + 1);
}
}