[libbluray-devel] Fix restoring suspended playback time position

hpi1 git at videolan.org
Thu Apr 14 09:44:04 CEST 2016


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Thu Apr 14 10:16:41 2016 +0300| [43db0cce71283410a27813c06713cfb99d5d87e8] | committer: hpi1

Fix restoring suspended playback time position

Time in PSR_TIME is clip timestamp, not media time.

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

 src/libbluray/bluray.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index b760a49..9d15af1 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -2858,7 +2858,7 @@ static void _process_psr_restore_event(BLURAY *bd, BD_PSR_EVENT *ev)
             bd_seek_playitem(bd, ev->new_val);
             return;
         case PSR_TIME:
-            bd_seek_time(bd, ((int64_t)ev->new_val) << 1);
+            _clip_seek_time(bd, ev->new_val);
             _init_ig_stream(bd);
             _run_gc(bd, GC_CTRL_INIT_MENU, 0);
             return;



More information about the libbluray-devel mailing list