[MPlayer-cvslog] r36857 - trunk/libvo/vo_dfbmga.c

reimar subversion at mplayerhq.hu
Sun Feb 16 16:44:34 CET 2014


Author: reimar
Date: Sun Feb 16 16:44:34 2014
New Revision: 36857

Log:
vo_dfbmga: fix pointer cast size warnings.

Modified:
   trunk/libvo/vo_dfbmga.c

Modified: trunk/libvo/vo_dfbmga.c
==============================================================================
--- trunk/libvo/vo_dfbmga.c	Sun Feb 16 16:44:32 2014	(r36856)
+++ trunk/libvo/vo_dfbmga.c	Sun Feb 16 16:44:34 2014	(r36857)
@@ -1289,7 +1289,7 @@ get_image( mp_image_t *mpi )
           }
 
           mpi->flags |= MP_IMGFLAG_DIRECT;
-          mpi->priv = (void *) buf;
+          mpi->priv = (void *)(intptr_t)buf;
           current_buf = buf;
 
           return VO_TRUE;
@@ -1306,7 +1306,7 @@ static uint32_t
 draw_image( mp_image_t *mpi )
 {
      if (mpi->flags & MP_IMGFLAG_DIRECT) {
-          current_buf = (int) mpi->priv;
+          current_buf = (intptr_t)mpi->priv;
           return VO_TRUE;
      }
      if (mpi->flags & MP_IMGFLAG_DRAW_CALLBACK)


More information about the MPlayer-cvslog mailing list