From 64a9291ee22789c54aa5da03b1882e4041961b7a Mon Sep 17 00:00:00 2001 From: jstebbins Date: Wed, 27 Nov 2013 00:35:36 +0000 Subject: LinGui: add chapter start time to chapter tab display git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5906 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/hb-backend.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'gtk/src/hb-backend.c') 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* -- cgit v1.2.3