[libbluray-devel] Added const

hpi1 git at videolan.org
Wed Aug 27 10:48:45 CEST 2014


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue Aug 26 13:43:13 2014 +0300| [69d8a3d721a03c692e8f95a4d4d630a285cf40df] | committer: hpi1

Added const

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

 src/libbluray/hdmv/hdmv_vm.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/libbluray/hdmv/hdmv_vm.c b/src/libbluray/hdmv/hdmv_vm.c
index c79aede..1d9bf76 100644
--- a/src/libbluray/hdmv/hdmv_vm.c
+++ b/src/libbluray/hdmv/hdmv_vm.c
@@ -44,7 +44,7 @@ struct hdmv_vm_s {
     /* state */
     uint32_t       pc;            /* program counter */
     BD_REGISTERS  *regs;          /* player registers */
-    MOBJ_OBJECT   *object;        /* currently running object code */
+    const MOBJ_OBJECT *object;    /* currently running object code */
 
     HDMV_EVENT     event[5];      /* pending events to return */
 
@@ -55,11 +55,11 @@ struct hdmv_vm_s {
     MOBJ_OBJECT   *ig_object;     /* current object from IG stream */
 
     /* object currently playing playlist */
-    MOBJ_OBJECT *playing_object;
+    const MOBJ_OBJECT *playing_object;
     uint32_t     playing_pc;
 
     /* suspended object */
-    MOBJ_OBJECT *suspended_object;
+    const MOBJ_OBJECT *suspended_object;
     uint32_t     suspended_pc;
 
     /* Available titles. Used to validate CALL_TITLE/JUMP_TITLE. */
@@ -1177,7 +1177,7 @@ int hdmv_vm_running(HDMV_VM *p)
 uint32_t hdmv_vm_get_uo_mask(HDMV_VM *p)
 {
     uint32_t     mask = 0;
-    MOBJ_OBJECT *o    = NULL;
+    const MOBJ_OBJECT *o = NULL;
 
     if (!p) {
         return 0;



More information about the libbluray-devel mailing list