[libbluray-devel] commit: Make sure ig_object is NULL when it is not being executed (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:11:38 2010 +0300| [bfea2a245f2d7da6227ddd419830150ed7b91414] | committer: hpi1
Make sure ig_object is NULL when it is not being executed
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=bfea2a245f2d7da6227ddd419830150ed7b91414
---
src/libbluray/hdmv/hdmv_vm.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/libbluray/hdmv/hdmv_vm.c b/src/libbluray/hdmv/hdmv_vm.c
index 3fafc88..a27f669 100644
--- a/src/libbluray/hdmv/hdmv_vm.c
+++ b/src/libbluray/hdmv/hdmv_vm.c
@@ -883,6 +883,9 @@ int hdmv_vm_select_object(HDMV_VM *p, int object)
DEBUG(DBG_HDMV|DBG_CRIT, "hdmv_vm_select_object(): invalid object reference (%d) !\n", object);
return -1;
}
+
+ _free_ig_object(p);
+
p->pc = 0;
p->object = &p->movie_objects->objects[object];
}
@@ -968,6 +971,7 @@ int hdmv_vm_run(HDMV_VM *p, HDMV_EVENT *ev)
if (p->ig_object) {
ev->event = HDMV_EVENT_IG_END;
+ _free_ig_object(p);
}
return 0;
More information about the libbluray-devel
mailing list