[libbluray-devel] Fix incorrect pointer calculation in debug message
hpi1
git at videolan.org
Thu Aug 21 12:56:14 CEST 2014
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Thu Aug 21 13:48:19 2014 +0300| [f0b9681354af9f2e9c594bc3b4ff63c3c9464682] | committer: hpi1
Fix incorrect pointer calculation in debug message
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=f0b9681354af9f2e9c594bc3b4ff63c3c9464682
---
src/libbluray/hdmv/hdmv_vm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libbluray/hdmv/hdmv_vm.c b/src/libbluray/hdmv/hdmv_vm.c
index fb09d5d..c79aede 100644
--- a/src/libbluray/hdmv/hdmv_vm.c
+++ b/src/libbluray/hdmv/hdmv_vm.c
@@ -411,7 +411,7 @@ static int _resume_object(HDMV_VM *p, int psr_restore)
p->suspended_object = NULL;
BD_DEBUG(DBG_HDMV, "resuming object %ld at %d\n",
- (long)((p->movie_objects->objects - p->object) / sizeof(p->movie_objects->objects[0])),
+ (long)(p->object - p->movie_objects->objects),
p->pc);
_queue_event(p, HDMV_EVENT_PLAY_STOP, 0);
More information about the libbluray-devel
mailing list