diff options
author | jstebbins <[email protected]> | 2013-11-27 00:35:36 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2013-11-27 00:35:36 +0000 |
commit | 64a9291ee22789c54aa5da03b1882e4041961b7a (patch) | |
tree | 3aec04767c79a311ca7554d6fe5ce4639a4a96b3 /gtk/src/hb-backend.c | |
parent | 779fa193b6433f0afadc3fe3c3a6ad72dce54b2c (diff) |
LinGui: add chapter start time to chapter tab display
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5906 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/hb-backend.c')
-rw-r--r-- | gtk/src/hb-backend.c | 8 |
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* |