summaryrefslogtreecommitdiffstats
path: root/gtk/src/hb-backend.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/src/hb-backend.c')
-rw-r--r--gtk/src/hb-backend.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c
index 686fa3fdb..2c1e568cb 100644
--- a/gtk/src/hb-backend.c
+++ b/gtk/src/hb-backend.c
@@ -3274,23 +3274,21 @@ ghb_part_duration(gint tt, gint sc, gint ec, gint *hh, gint *mm, gint *ss)
}
void
-ghb_get_chapter_duration(gint ti, gint ii, gint *hh, gint *mm, gint *ss)
+ghb_get_chapter_duration(gint ti, gint ii, gint64 *duration)
{
hb_title_t * title;
hb_chapter_t * chapter;
gint count;
g_debug("ghb_get_chapter_duration (title = %d)\n", ti);
- *hh = *mm = *ss = 0;
+ *duration = 0;
title = ghb_get_title_info( ti );
if (title == NULL) return;
count = hb_list_count( title->list_chapter );
if (ii >= count) return;
chapter = hb_list_item(title->list_chapter, ii);
if (chapter == NULL) return;
- *hh = chapter->hours;
- *mm = chapter->minutes;
- *ss = chapter->seconds;
+ *duration = chapter->duration;
}
GValue*