[libbluray-devel] TextST: fixed timer initialization

hpi1 git at videolan.org
Fri Aug 23 09:26:18 CEST 2013


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Aug 23 09:50:49 2013 +0300| [d3352d2c17631d483e46a4a9097db625c25d2cf0] | committer: hpi1

TextST: fixed timer initialization

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=d3352d2c17631d483e46a4a9097db625c25d2cf0
---

 src/libbluray/bluray.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 3625688..b5db939 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -478,7 +478,9 @@ static void _update_textst_timer(BLURAY *bd)
 static void _init_textst_timer(BLURAY *bd)
 {
     if (bd->st_textst.clip) {
-        bd->gc_wakeup_time = (uint32_t)(bd_tell_time(bd) >> 1);
+        uint32_t time;
+        clpi_access_point(bd->st0.clip->cl, bd->st0.clip_block_pos/192, /*next=*/0, /*angle_change=*/0, &time);
+        bd->gc_wakeup_time = time;
         bd->gc_wakeup_pos = 0;
         _update_textst_timer(bd);
     }



More information about the libbluray-devel mailing list