[libbluray-devel] commit: Added HDMV_EVENT_IG_END (hpi1 )
git at videolan.org
git at videolan.org
Thu Oct 14 17:31:16 CEST 2010
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Thu Oct 14 18:27:02 2010 +0300| [eedc399df2a8249f6d25af832eba44898b5a6dd2] | committer: hpi1
Added HDMV_EVENT_IG_END
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=eedc399df2a8249f6d25af832eba44898b5a6dd2
---
src/libbluray/hdmv/hdmv_vm.c | 5 +++++
src/libbluray/hdmv/hdmv_vm.h | 3 ++-
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/src/libbluray/hdmv/hdmv_vm.c b/src/libbluray/hdmv/hdmv_vm.c
index cfd3f6c..3fafc88 100644
--- a/src/libbluray/hdmv/hdmv_vm.c
+++ b/src/libbluray/hdmv/hdmv_vm.c
@@ -965,6 +965,11 @@ int hdmv_vm_run(HDMV_VM *p, HDMV_EVENT *ev)
DEBUG(DBG_HDMV, "terminated with PC=%d\n", p->pc);
p->object = NULL;
ev->event = HDMV_EVENT_END;
+
+ if (p->ig_object) {
+ ev->event = HDMV_EVENT_IG_END;
+ }
+
return 0;
}
diff --git a/src/libbluray/hdmv/hdmv_vm.h b/src/libbluray/hdmv/hdmv_vm.h
index 83a2b58..5d7376c 100644
--- a/src/libbluray/hdmv/hdmv_vm.h
+++ b/src/libbluray/hdmv/hdmv_vm.h
@@ -30,7 +30,8 @@
typedef enum {
HDMV_EVENT_NONE = 0, /* no events */
- HDMV_EVENT_END, /* end of program */
+ HDMV_EVENT_END, /* end of program (movie object) */
+ HDMV_EVENT_IG_END, /* end of program (interactive) */
HDMV_EVENT_TITLE, /* play title (from disc index) */
HDMV_EVENT_PLAY_PL, /* select playlist */
More information about the libbluray-devel
mailing list