Commit 324f8448 authored by Francois Cartegnie's avatar Francois Cartegnie Committed by Jean-Baptiste Kempf

typedef va_arg function pointers to avoid compiler parse errors

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
(cherry picked from commit d6bfdcd044f01978ddffd5ee60f8875a80964ae5)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 5ca64a30
......@@ -152,6 +152,8 @@ int vlc_plugin_set (module_t *module, module_config_t *item, int propid, ...)
{
va_list ap;
int ret = 0;
typedef int(*int_fp_vlcobjectt)(vlc_object_t *) ;
typedef void(*void_fp_vlcobjectt)(vlc_object_t *);
va_start (ap, propid);
switch (propid)
......@@ -195,11 +197,11 @@ int vlc_plugin_set (module_t *module, module_config_t *item, int propid, ...)
break;
case VLC_MODULE_CB_OPEN:
module->pf_activate = va_arg (ap, int (*) (vlc_object_t *));
module->pf_activate = va_arg (ap, int_fp_vlcobjectt);
break;
case VLC_MODULE_CB_CLOSE:
module->pf_deactivate = va_arg (ap, void (*) (vlc_object_t *));
module->pf_deactivate = va_arg (ap, void_fp_vlcobjectt);
break;
case VLC_MODULE_NO_UNLOAD:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment