[MPlayer-cvslog] r33295 - trunk/libvo/vo_xvmc.c

reimar subversion at mplayerhq.hu
Fri Apr 22 11:24:56 CEST 2011


Author: reimar
Date: Fri Apr 22 11:24:56 2011
New Revision: 33295

Log:
Specific function argument types for function pointers.
This avoids annoying issues like float arguments passed as float
instead of being converted to int and similar.

Modified:
   trunk/libvo/vo_xvmc.c

Modified: trunk/libvo/vo_xvmc.c
==============================================================================
--- trunk/libvo/vo_xvmc.c	Fri Apr 22 11:21:52 2011	(r33294)
+++ trunk/libvo/vo_xvmc.c	Fri Apr 22 11:24:56 2011	(r33295)
@@ -121,8 +121,8 @@ static void   init_osd_yuv_pal(void);
 static const struct{
     int id;//id as xvimages or as mplayer RGB|{8,15,16,24,32}
     void (* init_func_ptr)(void);
-    void (* draw_func_ptr)();
-    void (* clear_func_ptr)();
+    void (* draw_func_ptr)(int, int, int, int, unsigned char *, unsigned char *, int);
+    void (* clear_func_ptr)(int, int, int, int);
     } osd_render[]={
                         {0x34344149,init_osd_yuv_pal,draw_osd_AI44,clear_osd_subpic},
                         {0x34344941,init_osd_yuv_pal,draw_osd_IA44,clear_osd_subpic},


More information about the MPlayer-cvslog mailing list