[libbluray-devel] Add cast

hpi1 git at videolan.org
Sun Feb 15 22:45:58 CET 2015


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sun Feb 15 22:46:43 2015 +0200| [d945aec7729b752df0afefaae589a3597189c063] | committer: hpi1

Add cast

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

 src/libbluray/decoders/graphics_controller.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libbluray/decoders/graphics_controller.c b/src/libbluray/decoders/graphics_controller.c
index a034506..aef513c 100644
--- a/src/libbluray/decoders/graphics_controller.c
+++ b/src/libbluray/decoders/graphics_controller.c
@@ -1008,7 +1008,7 @@ static int _render_textst(GRAPHICS_CONTROLLER *p, uint32_t stc, GC_NAV_CMDS *cmd
             GC_TRACE("_render_textst(): next event #%d in %"PRId64" seconds (pts %"PRId64")\n",
                      ii, (dialog[ii].start_pts - now)/90000, dialog[ii].start_pts);
             if (cmds) {
-                cmds->wakeup_time = dialog[ii].start_pts / 2;
+                cmds->wakeup_time = (uint32_t)(dialog[ii].start_pts / 2);
             }
             return 1;
         }



More information about the libbluray-devel mailing list