changeset 33208:60448677bf63

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.
author reimar
date Fri, 22 Apr 2011 09:24:56 +0000
parents 38b1b532c41b
children 0822bc9d90dc
files libvo/vo_xvmc.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_xvmc.c	Fri Apr 22 09:21:52 2011 +0000
+++ b/libvo/vo_xvmc.c	Fri Apr 22 09:24:56 2011 +0000
@@ -121,8 +121,8 @@
 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},