[libbluray-devel] commit: bd_menu_call(): Added pts parameter. (hpi1 )
git at videolan.org
git at videolan.org
Wed Dec 8 18:58:17 CET 2010
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue Dec 7 15:21:30 2010 +0200| [f0f7bfd2033f71312a41721f6e6cb3e2e0671705] | committer: hpi1
bd_menu_call(): Added pts parameter.
Current player pts is needed for resuming playback.
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=f0f7bfd2033f71312a41721f6e6cb3e2e0671705
---
src/libbluray/bluray.c | 6 +++++-
src/libbluray/bluray.h | 2 +-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 7c46138..1cf866a 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -1703,8 +1703,12 @@ int bd_play(BLURAY *bd)
return bd_play_title(bd, TITLE_FIRST_PLAY);
}
-int bd_menu_call(BLURAY *bd)
+int bd_menu_call(BLURAY *bd, int64_t pts)
{
+ if (pts >= 0) {
+ bd_psr_write(bd->regs, PSR_TIME, (uint32_t)(((uint64_t)pts) >> 1));
+ }
+
if (bd->title_type == title_undef) {
// bd_play not called
return 0;
diff --git a/src/libbluray/bluray.h b/src/libbluray/bluray.h
index 01e9f38..a22886b 100644
--- a/src/libbluray/bluray.h
+++ b/src/libbluray/bluray.h
@@ -483,7 +483,7 @@ int bd_read_ext(BLURAY *bd, unsigned char *buf, int len, BD_EVENT *event);
int bd_get_event(BLURAY *bd, BD_EVENT *event);
int bd_play_title(BLURAY *bd, unsigned title); /* play title (from disc index) */
-int bd_menu_call(BLURAY *bd); /* open disc root menu */
+int bd_menu_call(BLURAY *bd, int64_t pts); /* open disc root menu */
void bd_register_overlay_proc(BLURAY *bd, void *handle, bd_overlay_proc_f func);
void bd_user_input(BLURAY *bd, int64_t pts, uint32_t key);
More information about the libbluray-devel
mailing list