[MPlayer-cvslog] r37671 - trunk/libmenu/vf_menu.c

reimar subversion at mplayerhq.hu
Thu Feb 11 20:59:19 CET 2016


Author: reimar
Date: Thu Feb 11 20:59:19 2016
New Revision: 37671

Log:
vf_menu: avoid function cast.

Modified:
   trunk/libmenu/vf_menu.c

Modified: trunk/libmenu/vf_menu.c
==============================================================================
--- trunk/libmenu/vf_menu.c	Thu Feb 11 20:43:40 2016	(r37670)
+++ trunk/libmenu/vf_menu.c	Thu Feb 11 20:59:19 2016	(r37671)
@@ -66,7 +66,8 @@ void vf_menu_pause_update(struct vf_inst
   }
 }
 
-static int cmd_filter(mp_cmd_t* cmd, int paused, struct vf_priv_s * priv) {
+static int cmd_filter(mp_cmd_t* cmd, int paused, void *p) {
+  struct vf_priv_s *priv = p;
 
   switch(cmd->id) {
   case MP_CMD_MENU : {  // Convert txt cmd from the users into libmenu stuff
@@ -239,7 +240,7 @@ static int open_vf(vf_instance_t *vf, ch
       return 0;
     }
     st_priv->root->show = menu_startup;
-    mp_input_add_cmd_filter((mp_input_cmd_filter)cmd_filter,st_priv);
+    mp_input_add_cmd_filter(cmd_filter,st_priv);
   }
 
   vf->config = config;


More information about the MPlayer-cvslog mailing list